Change #265157
| Category | None |
| Changed by | Daniel Stenberg <daniel@haxx.se> |
| Changed at | Wed 22 Apr 2026 08:55:30 |
| Repository | https://api.github.com/repos/curl/curl |
| Project | curl/curl |
| Branch | bagder/upload-output-glob |
| Revision | 5a751c04847b31951c7eabf49584d43434873fd9 |
Comments
curl: support ![num] in output file name for upload glob references
Use parts of text from the upload filename field when that uses globbing
by using an exclamation mark (`!`) and the glob number. Similar to how
you can reference URL globs with `#`. For example, if you upload three
files to a single fixed HTTP URL and want to save the corresponding
responses in separate files:
curl -T 'file{1,2,3}' https://upload.example/ -o 'response-!1'
Verified by test 2024
Changed files
- docs/cmdline-opts/output.md
- docs/cmdline-opts/upload-file.md
- src/tool_operate.c
- src/tool_urlglob.c
- src/tool_urlglob.h
- tests/data/Makefile.am
- tests/data/test2014