Upload direct to amazon s3

0

Work using Symfony 2.5, Heroku hosting, and Amazon S3 for static files. I am working on a project where the user can upload very large images, and this ends up locking the server of my app or giving timeout because the server can not complete the transfer of the images.

I think the best solution would be a direct transfer of the file to S3, but I never did it and I do not want to risk it without thinking about it.

Any suggestions?

Thank you!

    
asked by anonymous 12.08.2014 / 01:37

2 answers

0

Ideally, this would allow the user to upload files directly to their bucket on S3. After that, just use a bundle or a lib to read the files that are there.

This text takes a very interesting approach to this: link

    
12.08.2014 / 13:55
0

So from what I realized, you're having trouble with your server as you yourself said. The best suggestion I can give is to make sure the files do not pass through the server. I think the best implementation I could do was upload the file via Ajax, directly by the same HMTL.

So you would use the multipart feature for these large files that you would send. And if you need to handle the files you would get directly into the bucket.

    
18.06.2015 / 16:21