Hey everyone,
I got a problem with image uploads in PHP beeing corrupted during/after upload process.
I dont know what it is, so i've included my code for parusal.... please help, this is driving me nuts
<---------------------------------------->
function UploadImage(){
global $HTTP_POST_FILES;
global $ImageFile;
reset($HTTP_POST_FILES);
$pic_file = $HTTP_POST_FILES['ImageFile'];
copy ($pic_file['tmp_name'], "../images/$ImageFile_name");
}
<FORM ACTION="<?php $SCRIPT_NAME ?>" Method="Post"
ENCTYPE="multipart/form-data" >
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000">
<Input Type="File" Name="ImageFile">
<Input Type="Submit" Name="Submit">
</FORM>
<---------------------------------------->