harkly Posted September 8, 2012 Share Posted September 8, 2012 I have limited the upload size in my php.ini but I want a message for the user so they no that the size was to large. Is there anyway to do this? Quote Link to comment https://forums.phpfreaks.com/topic/268153-ini-upload-size/ Share on other sites More sharing options...
PFMaBiSmAd Posted September 8, 2012 Share Posted September 8, 2012 Yes. The ['error'] element of $_FILES array will be a 1 (UPLOAD_ERR_INI_SIZE) value. See this link - http://us2.php.net/manual/en/features.file-upload.errors.php Quote Link to comment https://forums.phpfreaks.com/topic/268153-ini-upload-size/#findComment-1376308 Share on other sites More sharing options...
harkly Posted September 8, 2012 Author Share Posted September 8, 2012 Thanks! New there was something, Googling the wrong terms Quote Link to comment https://forums.phpfreaks.com/topic/268153-ini-upload-size/#findComment-1376342 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.