So curl(1) says in the section about the --form flag:
To force the 'content' part to be a file, prefix the file name with an @ sign. To just get the content part from a file, prefix the file name with the symbol <. The difference between @ and < is then that @ makes a file get attached in the post as a file upload, while the < makes a text field and just get the contents for that text field from a file.
Before this PR, request by default sends all files using @. By specifying :use-contents t when uploading a file, it'll generate the curl --form argument to use < instead. So the roughly equivalent Emacs Lisp code would be:
Okay so this is a very nuanced enhancement.
So
curl(1)
says in the section about the--form
flag:Consider the difference between:
and
Before this PR, request by default sends all files using
@
. By specifying:use-contents t
when uploading a file, it'll generate the curl--form
argument to use<
instead. So the roughly equivalent Emacs Lisp code would be:This has to be opted into specifically. The other
:files
forms default to using@
.