How to store files gracefully
When building web application, one thing you may need to think about is how you plan to store user files. If you are building an application that requires users to upload or download files(images, documents, pdf's..etc.). file storage can be an important part of your application architecture. Where Should I Store Files When building web applications, you’ve got a few choices for where to store your files. like Store user files in your database in a text column, or something similar Store user files directly on your web server Store user files in a file storage service like Amazon S3 Out of the above choices, #3 is your best bet. Storing files in a database directly is not very performant. Databases are not optimized for storing large blobs of content. Both retrieving and storing files from a database server is incredibly slow and will tax all other database queries. Storing files locally on your web server is also not normally a good idea...