Answer the question
In order to leave comments, you need to log in
How to make users upload large files to the site?
Good evening!
The task is as follows: there is a landing page with an application form, in which you can attach a file about 300mb in size. Applications will be collected within a week or two. The number of people is about 900. The
question is how to organize the download of files or what methods are there for this.
So far, from the options:
1) Take a second vds with a large amount of memory, raise the same apache server on it and process the ajax file save request with a php script, return a link to the file back and save it to the database.
2) It seems like yandex cloud provides storage with get / post requests, and I guess you can send a file by post there and save it there.
3) Make a save, like a regular file, on the same server where the site is.
In general, in the future I would like to make my own panel where the files would be stored in a separate place, so the theme will be useful for the following projects. Has anyone faced this issue and how did you solve it?
Answer the question
In order to leave comments, you need to log in
Files can be stored on hosting and automatically deleted after a month. I don't think that you will be flooded with applications directly, so most cloud hosting will suit your needs. Be sure to indicate the process of uploading files, otherwise impatient users will think that the form is stuck and try to submit it again or leave altogether. There are plenty of examples of how to upload files in JavaScript / PHP without reloading the page, I think you will find everything in the search yourself.
PS Didn't notice your note about 900 people. In this case, I would recommend taking a closer look at unlimited hosting.by SmartApe. Of course, it is not unlimited, but 100 GB there comes from under the box, while about the price of a regular tariff on other other hostings. But if you need more than 100 GB, then it's better to ask those. support.
2) It seems like yandex cloud provides storage with get / post requests, and I guess you can send a file by post there and save it there.alas, only in theory, in practice there is no free option, incl. and it makes no sense to consider it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question