Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Brian1111 opened this issue Jul 11, 2016 · 1 comment
Open

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

Brian1111 opened this issue Jul 11, 2016 · 1 comment

Comments

@Brian1111
Copy link

Brian1111 commented Jul 11, 2016

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?

@willwebberley
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants