0
move_uploaded_file((getimagesize($_FILES[$desktop_fieldname_1280x800]['tmp_name']), IMAGETYPE_PNG), $desktop_filename_1280x800)

I want to check if it is an image before moving the file, is the code above possible? want to do something similar it should perform the test within that statement not outside.

4

1 回答 1

0

要检查您不使用 getimagesize 函数的文件类型,您可能想看看这里

于 2013-11-15T04:04:33.637 回答