> -----Original Message----- > From: Jeff McKeon > Sent: Tuesday, April 20, 2004 10:21 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Upload file form > > > Ok, not exactly pure PHP problem but I hope someone here has > seen this before.. > > I'm got an upload form on a webpage, here's the code: > > ****SNIP**** > > ?> > Select the file type and browse for that file. The press > 'Upload'. The file will be uploaded to the server. No changes > in the database are done during this step. > > <FORM METHOD="POST" ENCTYPE="multipart/form-data" > ACTION="<?php echo $_SERVER['PHP_SELF'] ?>"> Form action: > <?php echo $_SERVER['PHP_SELF'] ?><br> Select CDR file type: > <select size="1" name="ftype"> <option > value='1:Stratos'>Stratos</option> > <option value='2:MVS'>MVS</option> > <option value='3:Xantic'>Xantic</option> > </select></p> > <P> > > Browse for the file<P> > > <INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE" VALUE="200000000"> > <INPUT TYPE="HIDDEN" NAME="action" VALUE="1"> <INPUT > TYPE="HIDDEN" NAME="uid" VALUE="[OpSup]jsm"> CDR File: <INPUT > TYPE="FILE" NAME="file1" SIZE="80"><BR><BR> <INPUT > TYPE="SUBMIT" VALUE="Upload"> </FORM> > > <?php > > ****SNIP**** > > I'm running this page on Redhat Linux 9 with an Apache ver 2 > webserver. The site itself is a virtualName site (All virutal > sites share the same IP address). > > When I browse for the tile and select it, then press the > submit button, Instead of getting a delay as the file > uploads, I get an instant error page from the browers: > > The page cannot be displayed: Cannot file server or DNS Error > > Any ideas? >
It appears that it may be a filesize issue. I made a small text file and it uploaded fine, a 13MB csv however causes the problem. In php.ini I've set the Max_file_uplode = 20M But still have the problem. Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php