I would like to make the public download method work and can't seem to get it.

My Drupal Setup:

Drupal 4.6.3
-- Clean URLs enabled
-- Public Download Method
filemanager.module
attachment.module

What Happens:

I can upload files fine, and when I FTP into my site, I can see the files. But when I try to download an attachment that was posted to a node through attachment.module and filemanger.module I get a "Page Not Found" page thats themed with my Drupal theme. This also occurs even if I disable Clean URLs. I also tried setting the Download Method to Private, and it didn't seem to have an effect on file attachments posted through attachment.module and filemanager.module. Although with the stock Drupal upload.module the Private Download Method did work and was the only want to download attachments (this was with Clean URLs enabled too).

Tracking Down the Issue:

Since I keep getting this "Page Not Found" page thats themed with my Drupal theme, it seems that the Clean URLs are affecting access to a HTTP request for a sub-directory under my domain (which is also drupal's root).

So if anyone else has experienced this issue/problem let me know what you did to fix it. Or if anyone has any ideas or things for me to try let me know.

Comments

waddy’s picture

force it to open in a new window?

I don't use either of those modules. I use uploads and then provide links to the files available for download (moved to the server independent of Drupal).

Like on this page: http://cityofmarion.org/fire/employment

The link from the words "application form" directs to a pdf file. I set this to open in a new window (target="_blank") and haven't had a problem.

eferraiuolo’s picture

So you made your files directory external to drupal, which I can see as a possibile solution. But I would like to keep the files and all drupal system files contained in one folder on my server's file system.

I believe I could use symlinks in apache to make this work, but thats a hard-coded approach, and not something I really want to resort to.

Thanks for the info, I will keep this in mind, as far as the new window, that shouldn't make a difference, it still the same request being recieved by the server.

eferraiuolo’s picture

Does anyone else have an ideas on this issue?

vascopj’s picture

I am trying to display images using Public download.
When I looked in the logs it gave.

"forbidden.html not found" associated with the image request.
So there seems to be some permissions issue with the file even though the file was uploaded through drupal.

I'll look at this more tomorrow.

vascopj’s picture

Hi

I thought it might have been the .htaccess file but it was permissions on the files directory.

I ran
chmod -R 755 files/
and this fixed the problem.

hope it helps you too

Sean