Hi I'm trying to learn how to do file upload and I am using the example shown on php.net's manual (http://www.php.net/manual/en/features.file-upload.php):
<form enctype="multipart/form-data" action="_URL_" 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> ...for the client and: <?php if (is_uploaded_file($userfile)) { copy($userfile, "/place/to/put/uploaded/file"); } else { echo "Possible file upload attack: filename '$userfile'."; } /* ...or... */ move_uploaded_file($userfile, "/place/to/put/uploaded/file"); ?> ..for the server side. No matter how I do it I always get the response "Possible file upload attack: filename." from the server. Am I forgetting something or what. Any help at all would make me very glad. ------------------------ Samba Sidibeh Systemutvecklare SYSteam Udac AB Storgatan 19, Box 174, 751 04 Uppsala Tel direkt: 018-67 81 35 Tel vxl: 018-67 80 00 Fax: 018-51 66 00 Hemsida: www.systeam.se, www.udac.se SYSteam Udac ingår i SYSteamkoncernen.