yes, I have copied example from there itself, it is the max size which I 
forgot to copy in email but which is actually in a program.

My html do contain max size tag. Still it is not working.

----------------html code ----------------

<FORM ENCTYPE="multipart/form-data" ACTION="uploadtest.php" METHOD=POST>
<input type="hidden" name="MAX_FILE_SIZE" value="1000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">

Following php file also have tried (with HTTP_POST....)

--------------------Php code---------
if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {
         copy($HTTP_POST_FILES['userfile']['tmp_name'], "/img");
else {
         echo "Possible file upload attack. Filename: " . 
$HTTP_POST_FILES['userfile']['name']; }
// move_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'], "/img");

echo "haha - file upload over";



At 04:01 PM 4/11/02 +1000, you wrote:
>At 1:52 PM +0800 11/4/02, Manisha wrote:
> >Image file uploading is not taking place.
>A 5 second glance at the manual page for file uploads would have shown
>you what you're doing wrong *and* given you a cut-and-paste example of
>how to do it right.
>  ...R.
>PHP General Mailing List (
>To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to