Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/116265-solved-iis-6-upload-limit/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.