Skip to content

feature: allow file upload for getuploadparams* apis #177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shwstppr
Copy link
Contributor

@shwstppr shwstppr commented Aug 7, 2025

Fixes #144

When using cmk in its shell, the following APIs will prompt for file upload,

  • getuploadparamsforiso
  • getuploadparamsforvolume
  • getuploadparamsfotemplate

The user can input file paths separated by a comma to allow uploading of files

cmk-file-upload.mp4

@shwstppr shwstppr marked this pull request as ready for review August 8, 2025 06:29
@shwstppr shwstppr added this to the 6.5.0 milestone Aug 8, 2025
@shwstppr shwstppr closed this Aug 8, 2025
@shwstppr shwstppr reopened this Aug 8, 2025
@shwstppr shwstppr closed this Aug 8, 2025
@shwstppr shwstppr reopened this Aug 8, 2025
Copy link

github-actions bot commented Aug 8, 2025

✅ Build complete for PR #177.

🔗 Download the cmk binaries (expires on August 18, 2025)

@rohityadavcloud
Copy link
Member

rohityadavcloud commented Aug 11, 2025

@shwstppr can we add a file= or filepath= parameter for only cmk to:

  • check that file exists & is readable (mod bits...)
  • move this in the first step itself, so cmk does not need to prompt the user and it simply / automatically upload the provided file or filepath to ACS
  • optional - can we show some kind of upload progress bar (using ascii chars like [==== ] percent% here) like pv (https://www.geeksforgeeks.org/linux-unix/pv-command-in-linux-with-examples/)

https://github.com/charmbracelet/bubbles
https://github.com/cheggaaa/pb
https://github.com/briandowns/spinner (like 36)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explore template/iso file upload from cmk
2 participants