PDF Corrupted After Upload

This topic contains 6 reply and 3 voices, and was last updated by bigspring 10 years, 8 months ago
Viewing 6 Posts - 1 through 6 (of 6 total)
Author Posts
March 24, 2014 at 5:44 pm 17168
bigspring Hi Guys, We have a user front end pro on our site to allow logged in users to upload resources. It's been working fine, but there's a strange issue with one particular PDF. The PDF opens perfectly fine when it was sent to me originally, but when the the file is uploaded to the via user front end pro it can no longer be opened. Opening in a browser shows the PDF viewer chrome, but not the actual content and no error. Trying to open it via my local machine says the file is empty. I can send the file if required but I can't make it publicly accessible. Any ideas? Thanks!
March 24, 2014 at 6:29 pm 17178
Mahi Mahi

perhaps your hosting mime type issue? Are you allowed to upload pdf file? does it works fine if you upload from admin area?

March 24, 2014 at 7:34 pm 17194
bigspring bigspring

Thanks for getting back to me so quickly!

PDFs are allowed to be uploaded and we have uploaded others successfully in the past. And if I upload it using the media library, it works perfect fine.

March 24, 2014 at 11:38 pm 17217
Tareq Hasan Tareq Hasan

So that’s just one particular PDF file? If other files usually works, then it would be very difficult to find out whats actually going wrong with that PDF file.

March 24, 2014 at 11:58 pm 17221
bigspring bigspring

That’s right – it seems to be this one file. And I thought I’d come and ask you because it is quote difficult to see what’s going wrong 🙂

Having said that, I have had issues with other files that are over 10MB (although the server allows 16MB). Is there any sort of file size limit that could be causing this?

March 25, 2014 at 12:33 am 17224
Tareq Hasan Tareq Hasan

There shouldn’t be any problem like this. Cause the upload we use, is the same from WordPress backend and the file uploading also done via WordPress native functions. So I don’t see anything wrong anywhere!

March 25, 2014 at 5:33 pm 17261
bigspring bigspring

I’ll do some more testing and see if I can narrow it down a little further and come back to you.

Viewing 6 Posts - 1 through 6 (of 6 total)