max upload size is misreported
Closed this issue · 1 comments
mikeyc7m commented
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))
unclecheese commented
Cheers. 0f5a9bc