I'm developing a script to grab small sized files (less than 1 MB) from user given a URLs and save them on my server.
My main concern is what if someone tried to upload large files like 1 GB files or even bigger? How do I control the file grabbing if it is a large file?
I tried some of the answers on the web but all of them process the whole file. For a 700 MB
video file, it took couple of minutes, does that mean the process taking my server resources?
What if a hacker keep posting URLs to large files so those process will eat up my server resources and I will loose visitors.
Can someone advice me on this?