File uploading with PHP

posted on May 20, 2006, 12:21 am
Comments
Eddie posted on September 16, 2006, 3:45 pm
Thanks for the tutorial. does this script limit the file size it uploads?
-------------------------------
Veselin: you can use $HTTP_POST_FILES['filename']['size'] to find out file size.

For example
if ($HTTP_POST_FILES['filename']['tmp_name']>1000) {
   echo "File is larger than 1000 bytes and cannot be uploaded.";
} else {
   upload......
};

Mike posted on May 23, 2006, 3:08 pm
thanks Veselin, this is a nice file uploading example.

Pages:   1   2   3   
   
If you have any additions, suggestions or modifications for this example please contact us or use the form below.
   
Your name:
Your email: (email address will not be posted on the web site)
Comment:
Verification