Example:
Original PDF hosted on Apple.com:
http://manuals.info.apple.com/en_US/iphone_user_guide.pdf (opens up fine in browser)
Now.. the same file, uploaded to Wikidot:
http://scmapdb.com/local--files/cold:pdftest/iphone_user_guide.pdf (does nothing when clicked)
Note that some other PDFs work fine. This one uploads as "data" instead of "PDF document".
Please see the Files module on http://scmapdb.com/cold:pdftest.
If it works fine on Apple.com and other hosts, I would expect it to work here too. I know you can right-click and Save As, but that is not the point. It should open up in browser like any PDF would anywhere on the internet.
Thanks!
There appears to be some issue with identifying the MIME type for that second file. When I click on it from your page, it doesn't do "nothing". I get prompted to open it with Adobe Reader, but your first file does automatically opens the PDF inside my browser window using the Adobe Reader plugin.
I inspected both files with a hex editor and they do have different pdf versions in the first few bytes of the file.
iphone_user_guide.pdf has hex "0A 25 50 44 46 2D 31 2E 36" (.%PDF-1.6.) in the first few bytes and fw4.pdf has hex "25 50 44 46 2D 31 2E 37" (%PDF-1.7.)
One thing that is curious to me is that the iphone guide file has hex 0A (line feed) in the first byte followed by the version info and the other file does not. I wonder if that is what it tripping up the MIME validation code.
Community Admin
this isn't exactly a solution, but do you think it's possible to hex edit remove the "0A" so it is recognized as a .pdf, while also not breaking the file?
I think this is a server config/MIME issue though, as it is specific to wikidot.
I can remeber - we had problems with different "pdf versions" - to show them automatically or not…
is an old issue…
Edit: ok, this does not really help
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
If file dont have a proper mime type (application/octet-stream is an generic one). We set mime type according to its extension. Done.
Bartłomiej Bąkowski @ Wikidot Inc.
';.;' TeRq (Write PM)
Thanks!