Home Forums Plugin Support WP User Frontend Pro PDF Corrupted After Upload

This topic is: not resolved

This topic contains 6 replies, has 3 voices, and was last updated by  bigspring 5 years, 2 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #17168

    bigspring
    Participant
    Post count: 9

    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!

    #17178

    Mahi
    Member
    Post count: 1555

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

    #17194

    bigspring
    Participant
    Post count: 9

    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.

    #17217

    Tareq Hasan
    Keymaster
    Post count: 2831

    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.

    #17221

    bigspring
    Participant
    Post count: 9

    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?

    #17224

    Tareq Hasan
    Keymaster
    Post count: 2831

    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!

    #17261

    bigspring
    Participant
    Post count: 9

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

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘PDF Corrupted After Upload’ is closed to new replies.