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

jordanmagnuson’s picture

Status: Active » Closed (duplicate)

Marking this as duplicate, as the problem appears to be with multiple swfupload widgets on a page:

http://drupal.org/node/716690

skilip’s picture

Status: Closed (duplicate) » Active

I've done some testing with the file-sizes and it doesn't work properly. Reactivated this issue.

skilip’s picture

Version: 6.x-2.0-beta2 » 6.x-2.0-beta3
Status: Active » Needs review
StatusFileSize
new1.77 KB

This patch should fix file size mismatches.

jcarnett’s picture

StatusFileSize
new2.52 KB

There 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.

aaron’s picture

Status: Needs review » Needs work

As 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.

aaron’s picture

Status: Needs work » Needs review
StatusFileSize
new3.31 KB

this fixes that condition as well.

aaron’s picture

unfortunately, 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...

EugenMayer’s picture

Patched - worked for me actually.

skilip’s picture

Version: 6.x-2.0-beta3 » 6.x-2.0-beta4
StatusFileSize
new2.57 KB
EugenMayer’s picture

Status: Needs review » Patch (to be ported)
EugenMayer’s picture

fixed in BETA6

EugenMayer’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.