Bug 8203 - Fix hard-coded upload size limit
Fix hard-coded upload size limit
Status: RESOLVED FIXED
Product: OMP
Classification: Unclassified
Component: General
1.1
All All
: P3 normal
Assigned To: PKP Support
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-22 10:19 PDT by Alec Smecher
Modified: 2013-11-22 09:42 PST (History)
0 users

See Also:
Version Reported In:
Also Affects:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alec Smecher 2013-04-22 10:19:40 PDT
There is a hard-coded 20M upload limit in lib/pkp/js/controllers/UploadHandler.js approx. line 128:

max_file_size: '20mb',

This should be adjusted to use instead the value configured in PHP and already exposed for display e.g. in lib/pkp/templates/controllers/wizard/fileUpload/form/fileUploadForm.tpl via the $maxFileUploadSize variable.
Comment 1 Alec Smecher 2013-11-21 12:04:02 PST
Use PHP file upload limit config rather than hard-coded limit
https://github.com/pkp/pkp-lib/commit/a7dcf6d323e982861e19819ed4d3bb33ab472e1f