I have a form where I want to allow files equal or less than 50 MB. but when I upload a file of 1.60 MB it says max file size please upload less. any suggestions why?
the file size 1.60 MB and If I print file array it shows size = 1686220
// Attempt 1
if (!filesize($file_path) < 50000) {
// max file size limit reached
}
// Attempt 2
if (!$file['size'] < 50000) {
// max file size limit reached
}