Jerec Posted May 8, 2013 Share Posted May 8, 2013 A project I'm working on will require links to files people upload. The direct way to do this is to take those uploads, put them in a directory, then give that link to those who need it like: http://blergh.net/files/what.jpg But I know I could receive those files, store some unique identifier, then give a link containing that identifier and build a PHP page to feed the file with the given identifier: http://blergh.net/downloads/zswe464 (which gives what.jpg when loaded) My question is what are the reasons to do this? I'd like to be sure this is worth doing before actually putting in the effort. Thanks! Link to comment Share on other sites More sharing options...
justsomeguy Posted May 8, 2013 Share Posted May 8, 2013 Typically either user authorization to download a particular file, or for keeping track of metrics like the number of times a file has been downloaded. Link to comment Share on other sites More sharing options...
Jerec Posted May 10, 2013 Author Share Posted May 10, 2013 I guess the answer was simple enough to just warrant one response, so that's one less thing to do. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now