Change #266958
| Category | curl |
| Changed by | Daniel Stenberg <daniel@haxx.se> |
| Changed at | Wed 13 May 2026 10:07:50 |
| Repository | https://github.com/curl/curl.git |
| Project | curl |
| Branch | master |
| Revision | 2238f0921cb00b33958470e30dff6326ea6d5c65 |
Comments
curl: named globs in output file name for upload glob references
Use parts of text from the upload filename field when that uses globbing
by giving it a name the same way we do it for URL globs. For example, if
you upload three files to a HTTP URL and want to save the corresponding
responses in separate files:
curl -T 'file{<num>1,2,3}' https://upload.example/ -o 'response-#<num>'
Verified by test 2014
Closes #21407
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