the $_FILES[‘tmp_name’] is empty when I’m trying to move the files on the server to the upload dir- i have put the error down to some pdfs have the filename convention of bla.pub.pdf- could this be my problem? how do i over come it?
Share
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.
We’ll need to see your code but it won’t be because of the extra dot in the file name.
Take a look at is_uploaded_file to verify the file has been uploaded before you move it, if this function returns false it’s probably a different issue like file size that is preventing it from being uploaded.