I'm creating a file storage site and what I would do is just have the download links format as:
https://www.domain.com/[id]/[file name] //id would just be 1, 2, 3 etc.
Dropbox and many others have it similarly except that the IDs are long / hashed:
https://www.dropbox.com/s/23d3kaz4adw9deq/anyfile.txt
Is there any (security) reason behind for having it that way?
I was thinking maybe they do it like that so that people can't just increment the id by 1 and just download everything they come across which would result in unnecessarily losing of more bandwidth. But that is not the case, because both the ID and FILE NAME need to match, and file names aren't easily guessable.