over coming extra . in filenames with move_uploaded_file
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 bl开发者_如何学编程a.pub.pdf- could this be my problem? how do i over come it?
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.
精彩评论