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 ----------------

<html>
<body>
<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">
</FORM>
</body></html>
-------------------------------------------------

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";
?>

---------------------------------------------------


STILL NOT GETTING LOADED. ANYTHING ELSE ?





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.
>
>http://www.php.net/manual/en/features.file-upload.php
>
>  ...R.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


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

Reply via email to