Have to save the uploaded file on the Elastic Beanstalk

0 votes
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
• 350 points

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,150 points

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,090 points
+1 vote
1 answer

How to make an application private on AWS Elastic Beanstalk?

Like you said by default, your application ...READ MORE

answered Oct 25, 2018 in AWS by Archana
• 5,560 points
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,560 points
0 votes
1 answer
+5 votes
13 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,150 points