----- Original Message ----- From: "bryan_is_south" <snip>
Okay, so I have to move the uploaded file from the temp folder to a different folder then using PHP, right? I tried copying a function from my book, but another problem arose: there is supposed to be an automatic $_FILES superglobal, but this is not the case for me. It gives me an error when I try to echo something like $_FILES['upload']['name'] or such. Once I get aorund this obstacle, I'll be able to try the new temp folder stuff. If you know why my $_FILES superglobal isn't working, please help. Thank you very much -bryan ------------------------------------ Hi Brian, An error for echo($_FILES['upload']['name']); does not necessarily mean that there is no $_FILES superglobal. The above assumes that you are using a form with <input type="file" NAME="upload"> Try this if(!is_set($_FILES)) { echo("There are no files uploaded\n"); die(); } foreach($_FILES as $key => $thisfile) { echo("For the form input name that is [" . $key . "]\n\n"); echo("Remote file (name) is [" . $thisfile['name'] . "]\n"); echo("Browsers suggested mime (type) is [" . $thisfile['type'] . "]\n"); echo("Actual file (size) is [" . $thisfile['size'] . "]\n"); echo("Server temporary name (tmp_name) is [" . $thisfile['tmp_name'] . "]\n"); echo("Upload (error) is [" . $thisfile['error'] . "]\n\n\n\n"); }