You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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?
The text was updated successfully, but these errors were encountered: