Skip to content

Commit

Permalink
Document file uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
logandk committed Nov 26, 2017
1 parent df6e10e commit 70342c3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,18 @@ custom:
createRoute53Record: true
```
### File uploads
In order to accept file uploads from HTML forms, make sure to add `multipart/form-data` to
the list of content types with *Binary Support* in your API Gateway API. The
[serverless-apigw-binary](https://github.com/maciejtreder/serverless-apigw-binary)
Serverless plugin can be used to automate this process.

Keep in mind that, when building Serverless applications, uploading
[directly to S3](http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingHTTPPOST.html)
from the browser is usually the preferred approach.


# Thanks

Thanks to [Zappa](https://github.com/Miserlou/Zappa), which has been both the
Expand Down

0 comments on commit 70342c3

Please sign in to comment.