Hello everybody,
I've installed this great hack but I have a problem with downloading files.
I have set local_file_root to yes and local_file_root_prefix to a folder outside the location of my website Let's say for example: /home/mysite/mysite_upload
I have set recursively chmod 777 to this folder.
Then I have set upload_dir=/uploadsdir
So in theory, when I upload a file, for example story.doc in the site, I should have a new file on the server here (I have set force_redirect=1):
/home/mysite/mysite_upload/uploadsdir/1/871312035211987207.doc
And it's basically what happens. Everything is working fine for the upload. But when I try to download this file from the site, I get this error:
Not Found
The requested URL /uploadsdir/1/871312035211987207.doc was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I have read this thread, I can't find the explanation for this problem. I have checked that seo_friendly is set to no. I have checked the read rights on uploadsdir, everything is looking fine.
Does someone have an idea on this ?
Cheers.
|