开发者

over coming extra . in filenames with move_uploaded_file

开发者 https://www.devze.com 2023-04-05 22:17 出处:网络
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.p

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消