Fidsah Posted July 23, 2008 Share Posted July 23, 2008 I'm using IIS 6 with PHP 5, and I have a section of code that goes if ($_GET["submit"] == "yes"){ $size = $_FILES["sp"]['size']; $error = $_FILES["sp"]['error']; $filename = $_FILES["sp"]['name']; $temp = $_FILES["sp"]['tmp_name']; if ($_FILES == NULL) { print "It's null!"; } elseif (file_exists("$stordir\\$filename")){ print "It already exists!"; } else { move_uploaded_file($temp, "$stordir\\$filename"); This code works fine for small files, less than 500kb seems to be approximately the limit. For anything larger, I just end up at a blank screen. I've done some looking already, and in php.ini I have the values: upload_max_filesize = 90M post_max_size = 90M And in MetaBase.xml I've set this value (I saw on a few sites people swearing this worked): AspMaxRequestEntityAllowed="500000000" My form looks like: <form action="index.php?mode=upload&submit=yes" enctype="multipart/form-data" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="300000000" > <input type="file" name="sp"><br> <input type="submit" value="Upload"> The little files work great, and everything is happy with them, but I'm expecting this to handle between 20 and 40 meg files on a pretty regular basis, which currently refuses to work. Does anyone know what I need to do to get this limit up to about 100 meg? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/116265-solved-iis-6-upload-limit/ Share on other sites More sharing options...
Fidsah Posted July 23, 2008 Author Share Posted July 23, 2008 I downloaded the IIS 6 Resource Kit, and using the MetaBase explorer, I found an option that wasn't in MetaBase.xml titled "MaxRequestEntityAllowed." Increasing that limit solved my problem. Quote Link to comment https://forums.phpfreaks.com/topic/116265-solved-iis-6-upload-limit/#findComment-597879 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.