View Full Version : Help with uploading files >3MB, please

12-27-2003, 04:12 PM
I am unable to upload a file > 3MB and neither myself nor my hosting company can figure it out.

I am getting two different errors on two different machines. One is page cannot be displayed and the other is CGI timeout.

Here are what I know to be the relevant PHP settings:

post_max_size = 15M post_max_size+1 = 16 upload_max_filesize = 10M memory_limit = max_execution_time = 18000 max_input_time = 18000

Also, the IIS timeout is 900s according to hosting company.

Has anyone been able to do > 3MB this on IIS? Would anyone be willing to allow me to test upload on their site so I can keep heat on my hosting company, who is losing steam?

FYI - Here is my PHP code:



if (!$_POST['submit']) {

<form enctype="multipart/form-data" action="mcjfileupload2.php" method="POST">
file: <input name="userfile" type="file">
<input type="submit" value="Send" name="submit">

else {

$uploaddir = 'd:\\html\\users\\kevinandtaracom\\html\\Upload\'
$uploadfile = $uploaddir. $_FILES['userfile']['name'];

print "<pre>";

if (move_uploaded_file($_FILES['userfile']['tmp_name'
], $uploadfile)) {
print "valid, and success.";
else {
print "nope.";

print "</pre>";