My Omeka Classic site (wardvalleyarchive.org) is running the current Omeka version (3.1.2), and using the Foundation theme. When trying to upload a banner image, there is an error return that says the max file size for uploading is 1MB. At this size, the image appears fuzzy.
We have tried increasing max upload file size in all of the places identified here.
Does anyone have any next steps for troubleshooting?
I used to be able to display the image without trouble before a recent theme update.
Thank you!
Hi @teperkins1 ,
I don’t necessarily support using a banner larger than 1MB - I think you should be able to optimize it further and prevent it from being fuzzy.
However, with that said, did you check the Omeka config file? There is a setting to limit the upload size in /application/config/config.ini
The default is 10MB, but it’s possible it was lower previously.
;;;;;;;;;;
; Upload ;
;;;;;;;;;;
; upload.maxFileSize
; Set the maximum file upload size.
; default: 10M
;
; Uncomment the following line to set the maximum file upload size. This
; configuration will not exceed the maximum beyond what is set in the
; 'post_max_size' or 'upload_max_filesize' core php.ini directives.
;
;upload.maxFileSize = "10M"
Theme files like logos and banner images are subject to a hardcoded 1 megabyte size limit. It would be possible to change this by editing the code if necessary.
upload.maxFileSize
in the config.ini file, the comment there is somewhat misleading. There is no default for that setting; the default is to set no limit (meaning the PHP configured upload size limit will control). This is a somewhat niche setting that only allows administrators to lower the upload size limit lower than the configured PHP limit, and most sites don’t have it set.
@jflatnes do you mean editing the /application/forms/ThemeConfiguration.php file or what is the best way to override that hardcoded limit?
Editing the ThemeConfiguration.php file, the size limit constant there, is what would have to be done to change this particular limit, yes.
@teperkins1 I was actually doing a little more digging in that file and realized theme uploads also respect the Disable File Upload Validation setting in the Settings → Security tab. You can temporarily disable file validation, upload the banner, and then re-enable file validation.
Thanks! We temporarily checked the “disable file upload validation” box in order to upload our banner image, and then unchecked it after the upload. The image is now displaying without fuzziness. Thanks so much for your help!!