File Upload works normally. But when I mail a message with an attached file (.doc, .ppt, .pdf, etc) mailsave/mailhandler combo creates node and attaches file to node. File shows proper extension in the UI. When I download it is an binary file with a strange name and an .exe extension. When I change name the file opens normally. What can I do to change this behavior?

Comments

Stuart Greenfield’s picture

Assigned: Unassigned » Stuart Greenfield
Status: Active » Postponed (maintainer needs more info)

I have tested on my installation and I can't reproduce this behaviour. I am using mailsave 5.2 (not 5.3-dev which is under development still) and I have tried emailing .doc, .txt and .pdf files as both an anonymous and a registered user.

In both cases I get the correct attachments in the system which I can either open directly, or download and save.

Have you tried downloading the files using a different browser to see if it is a browser error?

Do you have a public facing page that I can visit to try and download the files myself?

Alternatively, email a file with the attachments to mailsave@stuartandnicola.com. I can download from there and check that the problem isn't the message format or the attachments themselves.

jimpipher’s picture

I was using Firefox on an Inel Mac. I tried Safari, that works but has its own quirks with the theme I'm using. I tried Opera and got Octet Stream application message which let me change the extension to .doc and open with MS Word. So I'll try on Windows and see what I get...Appears to be some sort of browser problem.

Thanks!

jimpipher’s picture

Works with IE on XP.

Thanks

Stuart Greenfield’s picture

Glad it's working for XP, but I don't understand why it doesn't work in other browsers. When a file is attached it should be assigned the correct mime type that is then used for subsequent downloads.

e.g.

.doc = application/msword
.txt = text/plain
.pdf = application/pdf

It sounds like some browsers are perhaps not sure what to do with the assigned file types, and default to treating them as binary?

I have tested again on IE, Firefox and Opera (all on XP) and these are all ok. I will test again on Linux when I get my machine back up and running!

Please post again if you have any more problems!

Stuart Greenfield’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No follow up received. I have been unable to recreate this problem, so setting to closed.

Please post again if the issue re-occurs.