I assume this problem is with FileField and not ImageField since the field "max_filesize_per_file" is defined in filefield.

If I set a per file limit of 2M, and then attempt to upload an Image to a Node that has the imagefield widget on it, I get an error that says I've exceeded the maximum allowed size, even though the size of the file I'm uploading is only 4k.

This occurs no matter what I set the limit to, as long as I use the M designation (ie, 10M, 50M, 100M). If I change the limit to 2000000, then the Upload proceeds without problem.

This needs to be tested as non-administrator, since the Admin apparently can upload any size file.

Comments

drewish’s picture

dopry’s picture

Status: Active » Fixed

this should be fixed in the latest head along with the per node max filesize validation.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

dummas_324324_32’s picture

i`ve still this error.
i use the latest versions of filefiled and imagefield.

any idea?