lundi 10 juillet 2017

AWS temporary files before uploading to S3?

My Laravel app allows users to upload images. Currently, when the user uploads their images, they are stored in a temporary location on the server. A cron job then modifies the uploaded images (compresses them, etc.), and uploads them to S3. Any temporary files older than 48 hours that failed to upload to S3 are deleted by another cron job.

I've set up an Elastic Beanstalk environment, but it's occurred to me that storing uploaded images in a temporary directory on an instance is risky because instances can be created and destroyed when necessary.

How and where, then, would I store these temporary files so that they're not at risk of being deleted by an instance?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2sJksZ3
via IFTTT

Aucun commentaire:

Enregistrer un commentaire