From 084bd427c9d67a1d2d7672a597f4b4507e2bb368 Mon Sep 17 00:00:00 2001 From: oof1lab Date: Wed, 1 Nov 2017 09:05:21 +0000 Subject: [PATCH] doc: mulitform POST mention --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 7dbb497d25..a83aff3da9 100644 --- a/README.md +++ b/README.md @@ -251,6 +251,8 @@ POST /dynamic ``` 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 returns uploaded file name else 'upload failed' @@ -262,6 +264,8 @@ returns uploaded file name else 'upload failed' ``` 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 eg: curl --form files=@/Users/me/Desktop/a.png --form files=@/Users/me/Desktop/b.png http://localhost:3000/uploads