Hi, have beening searching for the problem awhile with no luck
I always got a 404 page for attachments and don't know the problem

for example, this is my setting

/var/www => htdocs root
/var/files => for private files

file system path: ../files (also tried /var/files didn't work too)
download method: private
clean url: enable

the upload is good, so if I upload a file "test.gif", it would stored in /var/files/test.gif
and the link in drupal is http://www.example.com/system/files/test.gif

when I try to access this file, it gets a 404 page
is this a bug or just my setting is wrong?

Comments

Fusion_Sushi’s picture

If you did please let us know what the solution was. Here is a short list of things to check:

1) htaccess
Does your host allow you access to and modify the htaccess file? you are on linux? shared? if everything is standard you can generally rule this out as a problem.

2) directory permissions
If you have not set your permissions, I'd take a look at them and try resetting them, wsftp has a easy graphic interface to change direcotry read/write permissions.

_______________________________________________________________
"You can always find the storm by listening for the Thunder."

ethangato’s picture

Thanks,

I figure out later it was cause by filerequest module

in .htaccess

# For private wrapping
# RewriteRule system/files modules/filerequest/throttle.php [L]

everything is fine when I uncomment this line and disable filerequest module