Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ var queryString = require('query-string');
module.exports.requestUploadURL = (event, context, callback) => {

// Create new S3 instance to handle our request for a new upload URL.
var s3 = new AWS.S3();
// Using signatureVersion v4 allows authenticating inbound API requests to AWS services.
const s3 = new AWS.S3({
signatureVersion: 'v4'
});

// Parse out the parameters of the file the client would like to upload.
var params = queryString.parse(event.body)
Expand Down