Hello,
I'm going to start making a script that will allow users to upload a file, then re download it later. I'll basically be doing the following:
- The uploaded file will be given a string of random numbers / letters as the filename and uploaded to a folder.
- That random file name will be stored in the database along with the users username
- When the user logs in they will see a list of their files that they can download and they will link to the appropriate file on the site.
The only problem with this is that anyone will be able to access the file if they get the link. It is unlikely that they'd guess the file name but still there is a posibility so my question is:
Is there a way to make this system more secure, only allowing that same user to download the file again?
The files uploaded wont contain sensitive information however I certainly dont want it falling into the hands of certain people.
I'm going to start making a script that will allow users to upload a file, then re download it later. I'll basically be doing the following:
- The uploaded file will be given a string of random numbers / letters as the filename and uploaded to a folder.
- That random file name will be stored in the database along with the users username
- When the user logs in they will see a list of their files that they can download and they will link to the appropriate file on the site.
The only problem with this is that anyone will be able to access the file if they get the link. It is unlikely that they'd guess the file name but still there is a posibility so my question is:
Is there a way to make this system more secure, only allowing that same user to download the file again?
The files uploaded wont contain sensitive information however I certainly dont want it falling into the hands of certain people.
Comment