What does print_r($_FILES) tell you? Is $_FILES['userfile']['error'] set to
a value?

-----Original Message-----
From: Somesh [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 11:18
Subject: [PHP] How to upload a file


I am using the following code to upload file;
<form enctype="multipart/form-data" action=load.php method=post>
<input type=hidden name=MAX_FILE_SIZE value=1000000000>
Send the file: <input type=file name=userfile><br>
<input type=submit value="Send ">

This works fine for small files of like some Kbs but fails to upload
larger files near to 1MB.

Can any one help me out from this problem

my file processing code is::
if(is_uploaded_file($userfile)) {
        echo "Successfully completed the uploading of the file
$userfile_name of size $userfile_size<br>";
        echo "some error has occured while uploading the file
        echo "$userfile";

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to