NodeDirectUploader icon indicating copy to clipboard operation
NodeDirectUploader copied to clipboard

I cannot upload an image to S3. I am getting a busy signal.

Open Brian1111 opened this issue 9 years ago • 1 comments

I used your code as it is. I left the app.post('/save-details', (req, res) => {}); function blank. However, I entered the configuration access keys, i.e., aws-access-id, aws-secret-key, s3-bucket, in a hidden config file, and referenced them in app.js file. Also, I filled aws s3 Bucket permissions according to the instructions given on Heroku. If you wish, you can look at my code at Brian1111/ndu.

When I run the app on localhost and upload an image, Chrome tab displays a rotating circle busy sign. No file is being uploaded to aws s3 Bucket. In addition, Nodemon displays the following message: "message: 'Missing required key 'Bucket' in params', code: 'MissingRequiredParameter',"

Should I write any code for the app.post('/save-details',) function to make the NodeDirectUploader app work?

Brian1111 avatar Jul 11 '16 20:07 Brian1111

From the error you mention it sounds as if the Bucketparameter is not being set properly when configuring the S3 parameters (see this line).

Try hard-coding the bucket name in there instead to test it. If it works, then you can then try to figure out why your code isn't loading the bucket name from your config file.

willwebberley avatar Jul 12 '16 13:07 willwebberley