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)) { Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.