How to store the files uploaded from a website or a html? - database

Now I am creating a real digital library website. The website is required to store uploaded file in a database and receive it from the database. I have found a way to store the uploaded files in Google Cloud. May I know is there another way better than this?

Related

Does Vercel free servers store in its file system uploaded files from the application?

Well I'm sorry for the confused question title but let me explain it better in here.
I have a Nest.js application that I want to upload to Vercel free servers,and in this application users can upload files and it stores in the file system of the application ( I searched and it is accordingly to some programmers better than storing files directly in database ), and I have a question,when a user uploads his files,will Vercel store it ?
And also...if I want to migrate to some paid server (Digital Ocean,Azure,AWS,etc) can I get these files to make the migration?

What is the best way to store data from my repository?

I'm building a website with a "repository" where the user can download and upload several files of different sizes. My idea is to use my database with metadata to store information (extension, some tags and the path where it is stored). And then the user can access this data or search the application. My problem is that I don't know the best way to store it, I thought of using google drive, S3 and dropbox through API's. But I would like to know other ways to make this possible. I know it's a complex subject, but I would like you to tell me where to study.
for storing metadata you can use mongodb sync with file id and for storing large file you can use google drive API (let me know if you intrested ) or some kind of file hosting.

How can I upload files to my S3 bucket from my React app without a backend?

I am creating a web app using React where the user can upload files to a folder in my S3 bucket. This folder will have a unique passcode name. The user (or someone else) can use this passcode to retrieve these files from the S3 folder. So basically there is no login/authentication system.
My current issue is how do I safely allow read/write access to my S3 bucket? Almost every tutorial stores the access keys to the client code which I read is very bad practice but I also don't want to create a backend for something this simple. Someone suggested presigned URLs but I have no idea how to set that up (do I use Lambda? IAMs?). I'm really new to AWS (and webdev in general). Does anyone have any pointers on what I could look into?
do I use Lambda? IAMs?
The setup and process if fully explained in AWS blog:
Uploading to Amazon S3 directly from a web or mobile application

Best way to serve uploaded multimedia content

I am currently developing a website that allows uploading of images and other files. At this point I have a couple of doubts.
The first is, where should those files be stored? I was thinking of storing them in the file system.
And the second, what is the most correct way to serve uploaded multimedia files? If you use the file system as a storage medium, should you use static routes configured on the server or is there another better alternative?
Where should the files be stored?
If the numbers of files are limited and not very much, then you can store it in the filesystem. However, if the number is large, I would recommend to store it in some storage service like AWS S3. Process could be either of two that you store temporarily the uploaded file in filesystem and then upload it in S3 or direct upload to S3. Depends on the use case.
What is the most correct way to serve uploaded multimedia files?
In case you are using services like S3, you just have to set content type and expiration among other metadata while uploading and rest everything will be taken care by S3 only. In case you are storing data on filesystem, then you can use nginx/apache to serve the static assets files along with proper content type and other metadata.

Application hosted on AppHarbor, how can I save uploaded images?

AppHarbor (like Heroku) doesn't allow you to save uploaded files or images. I need to offload this somewhere and I have no idea what services exist for this purpose.
I've looked into FilePicker.io but they display a tacky branding image in their uploader and to remove that branding you have to pay a large sum of money.
Any suggestions on how to approach this problem? What is the modus operandi with applications that need file uploads that are hosted on PaaS?
We recommend that you use Amazon S3 to store files like this. An AppHarbor user has written a guide on how to get started with S3 on the support forums.

Resources