Have to save the uploaded file on the Elastic Beanstalk

+1 vote
I used an elastic-beanstalk service on AWS by using Node.js. Also, I have used a multer for file upload and uploaded file is saved on a webserver.

But when I publish a new version of a project file, the files that saved on my web server are gone.

I want to maintain that file on the webserver, just want to make it overwrite not rewrite.

Can anyone help me in this case?
Jul 4, 2018 in AWS by Luke cage
• 360 points
3,200 views
from what I read you must attach it to the environment, you must deploy the code either using eb deploy or Upload and deploy from the Application. hope this helps
Thanks, @Johan for your contribution.

Please register at Edureka Community and earn credits for every contribution. A contribution could be asking a question, answering, commenting or even upvoting/downvoting an answer or question.

These credits can be used to get a discount on the course. Also, you could become the admin at Edureka Community with certain points.

Cheers!

1 answer to this question.

0 votes
While working with Elastic Beanstalk (or any auto-scaling environment), ideally you would not want to store anything on the server itself. If a user is uploading a file, save it somewhere off the server.

In AWS, this typically means storing it in S3 - this means that the file doesn't get lost when the project is updated or the server gets terminated.
answered Jul 4, 2018 by Flying geek
• 3,280 points
if there are not getting lost then why we are not getting those files from those paths?
Hey @Manoj, it gets saved in your S3 bucket if I'm not wrong. Check inside your bucket. Older versions are not overwritten.

Related Questions In AWS

0 votes
1 answer

How to copy a folder from S3 to Elastic Beanstalk instance on its creation?

I had encountered similar problem. But i ...READ MORE

answered Aug 24, 2018 in AWS by Archana
• 4,170 points
4,482 views
0 votes
1 answer

Deploy multiple platforms to Elastic Beanstalk

Solve by using .ebextentions to run pre-install commands in ...READ MORE

answered Nov 28, 2018 in AWS by Archana
• 5,640 points
1,281 views
0 votes
1 answer
+9 votes
17 answers

AWS VPC - What is the difference between Internet Gateway & NAT

Internet Gateway An Internet Gateway is a logical connection ...READ MORE

answered Apr 24, 2018 in AWS by Flying geek
• 3,280 points

edited Jul 10, 2023 by Khan Sarfaraz 128,285 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP