Skip to content

Commit

Permalink
docs: merge SamagraX-Stencil#129
Browse files Browse the repository at this point in the history
  • Loading branch information
techsavvyash committed Jun 19, 2024
1 parent 4e411ec commit 135d0a8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions sample/06-file-upload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,23 @@ $ yarn run test:e2e
$ yarn run test:cov
```

## Steps To Upload Multiple Files

Send a POST request in the given route: /files/upload-files

The destination should be passed along with the post request as query parameter.

The files should be added in the request body (as form-data) with field-name(key) as 'files'

The filenames should be added in the request body (as form-data) with field-name(key) as 'filenames'

The files and and the filenames should be passed in form of arrays.

Note: The number of files and filenames must be same and also in the correct order.

API POST Request:
/files/upload-files?destination=uploads

## Stay in touch

- Author - [Yash Mittal](https://techsavvyash.dev) and [Team SamagraX](https://github.com/Samagra-Development)
Expand Down

0 comments on commit 135d0a8

Please sign in to comment.