Jump to content

Uploaded PDF file is not the proper, full size; becomes corrupted


BrendonKoz
 Share

Recommended Posts

Has anyone experienced a scenario where a PDF (or other) file that's been uploaded, and shows as having been successfully uploaded, is reporting as an improper size, and then doesn't load correctly when attempted to be accessed/downloaded/viewed from the website?

I have a PDF that, I believe, was generated from Canva. It is 4.5MB in size. During upload, the JS upload GUI reports the proper size in the progress bar, but then once complete, shows a filesize that is not the same as the original (2.5MB in this case). Unfortunately, it also seems to break and corrupt the file. It is indeed smaller. Thus far, I've manually uploaded, via FTP, the file overtop of the one processed by ProcessWire, but if this comes up again, I'm not sure what to look at.

I have FileValidatorSVG installed, but the file extension here is definitely PDF.
Also installed that might process files: WireRequestBlocker, SearchEngine File Indexer, WebP to JPG.

I thought I'd recently seen a topic about this, but when trying to find it again, was unable.

Link to comment
Share on other sites

I can't seem to reproduce it on my development server (mirrored PW website), so it must be something related to the webhost. Thanks for having me take a closer look.

Link to comment
Share on other sites

Not entirely - we haven't yet identified what on our webhost (Dreamhost) caused the file to become corrupted and only upload a portion of the file. What we do know, however, is that it's not a fault of ProcessWire. ? Because it's only occurred on one PDF for all the files we upload/share, it's entirely possible there was also some issue with the file itself. I'm going to wait to follow up with our host if/when we discover another file that shows this symptom.

I appreciate the follow-up. ?

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...