Hi,

Please can you help me?
When people download anything from my site, it gives them a filename containing my domain name.ext.
So if you where to download say download1.zip, you would actually get the file deltasblog.co.zip.
Why is this happening?

Example: http://www.deltasblog.co.uk/?q=node/15

Comments

Chill35’s picture

If you disable download_count, what happens to the files that are downloaded ? Are they renamed to mydomain.co.ext? I am afraid this has nothing to do with download_count. Download_count does not return a header for the file that's downloaded : all it does is this : when it's being signaled that a file is downloaded, it increments a counter. That's it and all.

Chill35’s picture

From your web site, when I download mysqllib_dll.zip with a right-click and "save as", I am given raw data in a html file. When I simply click on the file, the zip has that name on my hard drive : j1a323jl.zip. I have no clue what's wrong here.

Chill35’s picture

Are you using the project module to upload your files, or are you using the core upload module?

DeltaWolf7’s picture

1. Disable download_count
- after doing this the problem is still present. - not download_count
2. Right click/save as
- gives same result for me. domain.ext
3. Files are uploaded by?
- the section that says 'File attachments' when creating pages, shown even when the mod is disabled.

Chill35’s picture

3. Files are uploaded by?
- the section that says 'File attachments' when creating pages, shown even when the mod is disabled.

You probably are using the upload module, the module that comes as default for uploading files.

I suggest that you submit a bug issue or support request with DRUPAL PROJECT | upoload.module.

If you don't get feedback quickly, you may want to submit a post in the forums as well.

I am either getting raw data from trying to download your files or I'm getting the right file but with the wrong name.

DeltaWolf7’s picture

Thank you and I am sorry to bother you with this one.
Thanks again for your help.

Chill35’s picture

Assigned: DeltaWolf7 » Chill35
Status: Active » Closed (fixed)

You're welcome.

jacobjanzen’s picture

I have tried to find a solution for this, but can't.

Could someone help me out. I've been searching drupal.org endlessly.

Thanks,

Jake

sturmtieF’s picture

i have same problem with drupal 6.0.
if i change download-method to "public" - there is no problem (but counting will not work). changeing it to "private" ... every file has a ".htm" extenstions after the real extension (test.pdf --> test.pdf.htm)...
but this happend only by selekt "safe target as".
so the problem is not download_counter (i tryed without download-counter for testing) .. it is somewhere else ...

sturmtieF’s picture

OK, i have tested it.

Browser:
Firefox
Mozilla
SeaMonkey

Test.pdf is by selecting "safe target as" changed to Test.pdf.htm

With IE6 there is no problem. the file is Test.pdf at all.

Funny that the IE6 make no problems in this case ....

Perhups somebody can move this to the right person? I think that much more people have the same problem.

bye

tom

fantasma’s picture

Hi,
i discovered the same problem.
It only shows up, when i did not use clean url's.
To solve it, use clean url's.

kind regards
Dani

mickwilson20’s picture

I have the same issue with downloads under 5.1 irrespective of whether I set uploads to be "private" or "public". However, I run multiple instances of 5.1 built from the same tarball and only some of them interfere with download file names in this way so its obviously a configuration matter. I have yet to determine what the configuration tweak is that starts this problem.

Any guidance and suggestions most welcome.

creamneuron’s picture

hi!

I have the same problem (nearly).
i can leftclick the file and it will open in the specific programm (in my case its an .xls-file)
it will open fine, but the filename is something like: v1hJNodH.xls.part
ricghtclick "safe as" will save the file with this strange filename. it is not corrupted, and will open with excel, but

EVERYTIME i rightclick/save as, it gets a different random-name.

anyone else gets random filenames different with every klick?
maybe someone gets a hint by this information?

cream

nerdoc’s picture

same problem, Drupal 6.6
Any download of an attachement gets the filename $randomname.tmp
That can't be possible in a stable drupal tree.
is it a php config issue?

Paolo61’s picture

j use altervista and j've risolved the same problem installing clean-Urls