Morning all.
i am fairly annoyed.
i have been trying to geta file upload form function going for a while now but it keeps kicking me in the balls.
it works unless i try to upload anything greater than 2mb.
cos it only ever fails at 2mb or more it must be a setting. but it seems to eb a very illusive setting.
i have changed upload_max_filesize to = 24MB (should this be 24MB or 24000000).
heres my form code
<input type="hidden" name="MAX_FILE_SIZE" value="24000000" />
<span class="style1">Attach a Document/Screen Grab?: </span> <input name="uploadedfile" type="file" />
then heres my process code
$target_path = "uploads/";
$target_path = $target_path . basename( $FILES['uploadedfile']['name']);
$FILES['uploadedfile']['tmp_name'];
if(move_uploaded_file($FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $FILES['uploadedfile']['name']).
" has been uploaded";
} else{
echo "";
}
like i said it works great till i breach the 2mb mark.
i would also like to know how to change the file name to a variable of my choice (if anyone knows how to do this please also answer).
so...... does anyone have any ideas what ive missed.
many many many thanks in advance.
you're all really cool!