Issue Number | 264 |
---|---|
Summary | Problems Uploading Article with Large File Size (26 MB) |
Created | 2015-01-14 12:56:25 |
Issue Type | Bug |
Submitted By | Juthe, Robin (NIH/NCI) [E] |
Assigned To | Kline, Bob (NIH/NCI) [C] |
Status | Closed |
Resolved | 2015-12-02 12:05:51 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/oceebms/issue.144871 |
Sharon is having problems uploading an article PDF to the EBMS. I’m thinking it may be due to the file size (26 MB). Everything seems to indicate it’s an otherwise normal PDF.
She is receiving the following error message with each attempt.
Warning: finfo::file() [finfo.file]: Empty filename or path in
Ebms\Util::get_mime_type() (line 2106 of
/local/content/web/appdev/sites/ebms.nci.nih.gov/modules/custom/ebms/common.inc).
Jaworek PLoS Gen 2013 24039609.pdf is not a PDF file.
Other PDFs are uploading just fine.
As we learned, the file size limit is 20 MB. We should investigate whether it is feasible to increase this.
I'm pretty sure that it is feasible and easy. It's a configurable setting in PHP. I'm not aware of any limits set in our code.
It's also possible that the file can be compressed. Some PDF files are compressed and some aren't. There are websites that will compress the file for you and Adobe Acrobat will do it - assuming it isn't already compressed.
Here's an example discussion of easy compression: http://www.wikihow.com/Compress-a-PDF-File
When we discussed this earlier in the life of the system, we agreed that 20MB should be sufficient. What should the new limit be?
Is 50MB reasonable?
I can ask CBIIT if they'll go that high and see what they say. Before I do that, can you tell me if the users have followed up on Alan's suggestions above for compressing a really large PDF?
I just tried that with the 26MB article described above (PMID: 24039609) and it worked! The file size went from 26.4MB to 959KB. I used a web-based tool to compress the file located at www.pdfcompress.com. I think we can use this as a work-around for now and re-open this ticket if it isn't meeting our needs, so I'm closing this for the time being. Thanks!
Compressed PDF as a work-around.
That was an amazing compression ratio you got.
I tried it on some other PDF files. Some did very little (perhaps the files were already compressed at the source) but some others got very large compression ratios. It makes one wonder how much disk space would be saved in our systems and our many backup archives, if we had a script that just walked through all uploaded PDF files and attempted a compression.
Elapsed: 0:00:00.000688