We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
curl -X POST -F "file=@video.mp4;type=video/mp4" https://example.com curl: (26) Failed to open/read local data from file/application
and
curl -F "data=test;type=test/test1" https://example.com Warning: garbage at end of field specification: 1
however, removing the number in either of the types stops that error from occurring and uploads the file/data as expected.
This used to work, but from searching around a bit, I think this is what's causing the issue
curl/src/tool_formparse.c
Line 504 in a3585c9
curl 8.11.1 (x86_64-pc-linux-gnu) libcurl/8.11.1 OpenSSL/3.4.0 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.0 nghttp2/1.64.0 nghttp3/1.6.0
Arch Linux
The text was updated successfully, but these errors were encountered:
That's my silly mistake. I'll fix.
Sorry, something went wrong.
tool_formparse: accept digits in --form type= strings
4e4bc98
Adjusted test 186 to verify. Regression in 9664d5a, shipped in 8.11.1 Reported-by: IcedCoffeee on github Fixes #15761
f7e065f
bagder
Successfully merging a pull request may close this issue.
I did this
and
curl -F "data=test;type=test/test1" https://example.com Warning: garbage at end of field specification: 1
however, removing the number in either of the types stops that error from occurring and uploads the file/data as expected.
I expected the following
This used to work, but from searching around a bit, I think this is what's causing the issue
curl/src/tool_formparse.c
Line 504 in a3585c9
which got changed in 9664d5a and would explain why it stopped working recently.
curl/libcurl version
curl 8.11.1 (x86_64-pc-linux-gnu) libcurl/8.11.1 OpenSSL/3.4.0 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.0 nghttp2/1.64.0 nghttp3/1.6.0
operating system
Arch Linux
The text was updated successfully, but these errors were encountered: