As this error shows, my php file upload limit has been raised to 250M. Yet I'm getting this error, and swfupload removes the file:
The selected file iceberg_image_for_doug.png could not be uploaded.
* The file is 128.9 KB exceeding the maximum file size of 250M bytes.
* The file is 128.9 KB which would exceed your disk quota of 250M bytes.
This is ocuring for all very small files I try to upload. For larger files (it looks like it could be files over 250k) SWFUpload is not even trying to upload them... no error message, nothing.
Comments
Comment #1
jordanmagnuson commentedMarking this as duplicate, as the problem appears to be with multiple swfupload widgets on a page:
http://drupal.org/node/716690
Comment #2
skilip commentedI've done some testing with the file-sizes and it doesn't work properly. Reactivated this issue.
Comment #3
skilip commentedThis patch should fix file size mismatches.
Comment #4
jcarnett commentedThere are still a few other issues here. The patch only fixes the max_filesize_per_file setting and fails if the size doesn't include "M". There is also a bug in swfupload's arguments to file_validate_size causing the errors. It passes the unparsed size (i.e. "32M") when file_validate_size expects the size in bytes as an integer. An updated patch is attached that fixes both file size settings, allows them in any format allowed on the edit form, and fixes the file_validate_size arguments.
Comment #5
aaron commentedAs noted in #757718: Size limitations are ignored., there's also the issue of entering no value for the file size limitation, which results in a 0 for the swfupload limit, rather than the correct PHP settings fallback.
Comment #6
aaron commentedthis fixes that condition as well.
Comment #7
aaron commentedunfortunately, if the field setting is incorrect, then you still get a 'Server error!' warning. however, that's the admin's damn fault in that case...
Comment #8
EugenMayer commentedPatched - worked for me actually.
Comment #9
skilip commentedComment #10
EugenMayer commentedapplying in http://github.com/EugenMayer/swfupload/tree/716688
merged into dev
Comment #11
EugenMayer commentedfixed in BETA6
Comment #12
EugenMayer commented