Hello,
When download a file which was used with Drupal's "upload module", the file names get all wonky when downloading.

For example. If I create new content and attach a PDF to the content, everything works great. But when I view the content and click on the "ATTACHEMENT" link, the file which was originally uploaded as "file_name_01.pdf" downloads as "file_name_01.php" but it IS ACTUALLY a PDF file and not a PHP. I can open ""file_name_01.php" in acrobat just fine.

After messing around with some settings/php files, we were able to keep the extenion ".pdf", but than we get a some crazy random file names. IE:// we attach "file_name_02.pdf", when downloading it becomes "YHx87slC.pdf"

Does anyone know what could be causing this?

Comments

woodwars’s picture

I came across your post through a Google search. I am trying to unstand the "crazy random file names" as well. However, I am not using Drupal.

I get the problem when I download email attachments from Lotus (web-based) using Firefox. If you figure anything out, please post.

akleinwaechter’s picture

I have the problem that an uploaded PDF File gets the extionsion "filename.pdf.html". Firefox can't open the attachment any more because it tries to open the pdf as html file which results the page to hang. When I save the attachment I have to delete the last extension in order to get it opened.

Anybody out there having a solution for that problem (I'm running Drupal 5.5).

Best regards
Alex

nerdoc’s picture

same here with drupal 6.6, also Firefox (3.0.3) running on Linux.
With Windows under IE you can't download the file at all - "file was not found on this server."