Before I call move_uploaded_file, should I do anything about this specific variable:
$_FILES["filename"]["tmp_name"]
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s not much you can do with the variable itself, but you should test the file to ensure that it is of the type you were expecting—an image, for example. Never rely on the file extension for determining the file type. Don’t, for example, assume that something with a
.jpgextension is actually a JPEG file.