class-AnyFile enabled but PDF upload returns an error when downloading

I installed the latest version of ZenPhoto on my server to obtain the class-AnyFile plugin. After enabling it, I attempted uploading a PDF (the reason I wanted the plugin). After it'd successfully uploaded I attempted to download the file. Acrobat tells me the PDF is broken/damaged. Err...???

Comments

  • So, anything else you can tell us, like for instance, the settings you have for full image protection?
  • "Disable Hotlinking" is still checked, "cache the full image" is unchecked, the username, password, and hint are all filled in but don't work (this relates to the post I made just before this), and "Download" is the selection in the dropdown.
  • Both issues hould be fixed in tonight's nightly.
  • I downloaded last night's nightly (trunk.zip) and overwrote files through FTP. No improvement is being seen. Any other thoughts as to why this would be? Please see gallery.agbillings.com/mrm (U: montanarm P: rescue) these are simply test credentials so no biggy.
  • I cannot say what is the problem for you. http://testalbum.sbillard.org/sounds/maestro_GPS.pdf.php does download successfully.
  • acrylian Administrator, Developer
    Well, tried the link sbillard posted and Safari did download a pdf file initially without any further action automatically. That probably should not happen... Clicking the full image link to download does indeed not work. Rough quick guess, since Zenphoto is not able to process a pdf file the image protection which normally works via the scripts does not work.
  • Well, since downloading the image does work for me on that site, perhaps it is a problem with Safari?
  • acrylian Administrator, Developer
    Well, I tried again and I could this time download with Safari as well. It however downloaded the file with as a html page with .html suffix. This normally indicates that the header mime type sent does not match the file type, pdf in this case.

    Strange is with this that both with Firefox and Safari the pdf is downloaded automatically and correctly without any action by me. This might be because I disabled the PDF plugin for display of PDFs as I prefer to view them in a proper programm that does not crash my browser..
  • http://gallery.agbillings.com/mrm/mrmstats.pdf.php For some reason the PDF does not load automatically for me in a similar manner to the link sbillard posted. Clicking on the document icon attempts to open a .PDF in Adobe Reader/Acrobat but it's broken. Do you see similar results? Is there some setting I need to change to fix this? Or is this an error within my ZenPhoto install? U: montanarm P: rescue
  • Tonight's DEV nightly has added a mime-type dictionary that is then used in the full-image download. Please see if this fixes things for you.
  • I applied the nightly from the 7th and the PDF I've tested renders out just as it should! Now if I can figure out how to get it to show in the site itself...maybe that's the full-size view mode dropdown?
  • acrylian Administrator, Developer
    You can only display PDFs on a website if the visitors browser has either the PDF plugin enabled/installed. Then a browser offered a pdf should choose to open it using that.

    I am not familiar with this plugin actually but I assume it provides an option to display it via some web services (google?), too.
  • You can search for a "web document" renderer for PDF. The WEB Docs "image" handler can be configured to what should render the PDF.
Sign In or Register to comment.