By flamingvan on
If I set the download method to private and upload a PDF file it downloads as text. The top of the file looks like this:
Content-Type: text/plain; name=rental_application.pdf
Content-Length: 297935
Content-Disposition: inline; filename=rental_application.pdf
Content-Type: application/pdf; name=rental_application.pdf
Content-Length: 297783
Content-Disposition: attachment; filename=rental_application.pdf
Is the file transfer process corrupting the file? What should I do?
Thanks,
Moses
Comments
Same here
I also have the same problem - with any file downloaded as "private". But I've this problem only with one provider (aruba.it with Linux). If I do the same on my own webserver (linux/apache) it works fine. I suppose it's some limitation of my provider - but I wonder what should I do to solve the problem.
I solved!
I had to make a little patch to includes/file.inc to solve it.
Look: http://drupal.org/node/81123
Maybe somebody can test it?