LanceT Posted February 15, 2007 Share Posted February 15, 2007 Anyone know whether there is a general limit of uploading files via browser? I'm on shared hosting if that helps. Or maybe it just varies? Link to comment https://forums.phpfreaks.com/topic/38560-usually-what-is-the-default-php-upload-limit/ Share on other sites More sharing options...
redarrow Posted February 15, 2007 Share Posted February 15, 2007 8m Link to comment https://forums.phpfreaks.com/topic/38560-usually-what-is-the-default-php-upload-limit/#findComment-185071 Share on other sites More sharing options...
wildteen88 Posted February 15, 2007 Share Posted February 15, 2007 If your web host kept PHP's default upload limit setting then it'll be 8MB. To check your hosts upload limit, upload a php file called info.php that has this in it: <?php phpinfo(); ?> Go to info.php and scroll down to find the line starting with this: upload_max_filesize Next to it, it should show the max filesize for uploads. If the upload limit is too low for you then you might be able to increae the limit by adding the following in a .htaccess file: php_value "upload_max_filesize" 16M Now the upload limit will be 16MB. Link to comment https://forums.phpfreaks.com/topic/38560-usually-what-is-the-default-php-upload-limit/#findComment-185608 Share on other sites More sharing options...
craygo Posted February 15, 2007 Share Posted February 15, 2007 Also have to remember, you can have a limit of 16MB but if your script timeout is set to 90 seconds It may timeout before the file can be uploaded. So will depend on the users connection and the timeout value. Ray Link to comment https://forums.phpfreaks.com/topic/38560-usually-what-is-the-default-php-upload-limit/#findComment-185616 Share on other sites More sharing options...
LanceT Posted February 16, 2007 Author Share Posted February 16, 2007 so how do I configure timeout ? Link to comment https://forums.phpfreaks.com/topic/38560-usually-what-is-the-default-php-upload-limit/#findComment-186250 Share on other sites More sharing options...
wildteen88 Posted February 16, 2007 Share Posted February 16, 2007 either by using ini_set function in your script: // set the script timeout limit to 60 secs ini_set("max_execution_time", 60); or by using a .htaccess file: # set the script timeout limit to 60 secs php_value "max_execution_time" 60 Link to comment https://forums.phpfreaks.com/topic/38560-usually-what-is-the-default-php-upload-limit/#findComment-186489 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.