Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Commit

Permalink
Step 4: parsing multi-part form data
Browse files Browse the repository at this point in the history
  • Loading branch information
colbyfayock committed Jun 16, 2022
1 parent fff386b commit 712d21b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
4 changes: 4 additions & 0 deletions functions/blurhash.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const parser = require('lambda-multipart-parser');

exports.handler = async (event, context) => {
const formData = await parser.parse(event);

return {
statusCode: 200,
body: JSON.stringify({ status: 'Ok' })
Expand Down
34 changes: 33 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
},
"author": "",
"license": "ISC",
"dependencies": {}
"dependencies": {
"lambda-multipart-parser": "^1.0.1"
}
}

0 comments on commit 712d21b

Please sign in to comment.