unclecheese/silverstripe-dropzone

max upload size is misreported

Closed this issue · 1 comments

The upload size is reported from php post_max_size and upload_max_filesize and recalculated into bytes. But the recalculation is wrong, get_filesize_from_ini uses 1000 instead of 1024.

Suggested fix:
return floor($bytes/(1024*1024))