Browse Source

doc: mulitform POST mention

pull/8/head
oof1lab 7 years ago
parent
commit
084bd427c9
  1. 4
      README.md

4
README.md

@ -251,6 +251,8 @@ POST /dynamic
``` ```
POST /upload POST /upload
``` ```
Do POST operation on /upload url with multiform 'field' assigned to local file to be uploaded
eg: curl --form file=@/Users/me/Desktop/a.png http://localhost:3000/upload eg: curl --form file=@/Users/me/Desktop/a.png http://localhost:3000/upload
returns uploaded file name else 'upload failed' returns uploaded file name else 'upload failed'
@ -262,6 +264,8 @@ returns uploaded file name else 'upload failed'
``` ```
POST /uploads POST /uploads
``` ```
Do POST operation on /uploads url with multiform 'fields' assigned to local files to be uploaded
> Notice 's' near /api/upload**s** and file**s** in below example > Notice 's' near /api/upload**s** and file**s** in below example
eg: curl --form files=@/Users/me/Desktop/a.png --form files=@/Users/me/Desktop/b.png http://localhost:3000/uploads eg: curl --form files=@/Users/me/Desktop/a.png --form files=@/Users/me/Desktop/b.png http://localhost:3000/uploads

Loading…
Cancel
Save