website icon indicating copy to clipboard operation
website copied to clipboard

fix example curl command

Open abbbi opened this issue 1 year ago • 0 comments

The example curl command shown for the multi file upload example doesnt work, adjust command accordingly.

example wont work:

curl -X POST http://localhost:8080/upload   -F "upload[]=@/tmp/file1"   -F "upload[]=@/tmp/file2"   -H "Content-Type: multipart/form-data"
Uploaded successfully 0 files with fields name= and email=.

working command:

curl -X POST http://localhost:8080/upload   -F "files=@/tmp/file1"   -F "files=@/tmp/file2"   -H "Content-Type: multipart/form-data"
Uploaded successfully 2 files with fields name= and email=.

abbbi avatar Jul 06 '24 16:07 abbbi