Chrisj Posted June 9, 2014 Share Posted June 9, 2014 What file size is allowed with this code? if (@$_POST['submit'] != "") { $allowed_ext = array("gif", "jpeg", "jpg", "png", "pdf", "doc", "docs", "zip", "flv", "mp4"); $extension = end(explode(".", $_FILES["file"]["name"])); if (($_FILES["file"]["size"] < 524288000) && in_array($extension, $allowed_ext)) { Link to comment https://forums.phpfreaks.com/topic/289088-what-file-size-is-allowed-with-this-code/ Share on other sites More sharing options...
QuickOldCar Posted June 9, 2014 Share Posted June 9, 2014 less than 500MB Link to comment https://forums.phpfreaks.com/topic/289088-what-file-size-is-allowed-with-this-code/#findComment-1482324 Share on other sites More sharing options...
KevinM1 Posted June 9, 2014 Share Posted June 9, 2014 http://lmgtfy.com/?q=bytes+to+megabytes Link to comment https://forums.phpfreaks.com/topic/289088-what-file-size-is-allowed-with-this-code/#findComment-1482325 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.