mic2100
03-23-2010, 01:22 PM
hi,
I have a problem and im hoping one of you might have the answer.
I have a system that users logon and create various different projects/contacts etc. I want to be able to have a file upload facility where they can upload files and they will be stored in a specific directory related to that account/project. The problem is I don't want public access to the files, so i used a .htaccess to prevent access to the directories.
# prevent reading of all files
<Files *>
Deny From All
</Files>
my .htaccess code ^^
My problem is i am now unable to access any files in that directory using a URL.
The user each user account will be able to upload files and I only want each user to be able to download their files and no have access to anyone elses files (same for public).
I am going to store file deatils (name, type, size etc) in a DB but i don't want to have to store files in a BLOB field since there are lots of users and the table will get too big.
What is the best way to handle this? I am complete lost with this and i aint no htaccess expert
Thanks
mic
I have a problem and im hoping one of you might have the answer.
I have a system that users logon and create various different projects/contacts etc. I want to be able to have a file upload facility where they can upload files and they will be stored in a specific directory related to that account/project. The problem is I don't want public access to the files, so i used a .htaccess to prevent access to the directories.
# prevent reading of all files
<Files *>
Deny From All
</Files>
my .htaccess code ^^
My problem is i am now unable to access any files in that directory using a URL.
The user each user account will be able to upload files and I only want each user to be able to download their files and no have access to anyone elses files (same for public).
I am going to store file deatils (name, type, size etc) in a DB but i don't want to have to store files in a BLOB field since there are lots of users and the table will get too big.
What is the best way to handle this? I am complete lost with this and i aint no htaccess expert
Thanks
mic