Warning: getimagesize() [function.getimagesize]: Filename cannot be empty warning message?

前端 未结 6 1972
野的像风
野的像风 2020-12-06 15:37

Up until recently I\'ve been using some PHP to upload photos to a site. But suddenly it\'s started triggering all sorts of error messages.

I use a form that on actio

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 16:02

    Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in

    Verify the MAX_SIZE variable, example to define it for a 2Mo image:

    define('MAX_SIZE', 2000000);
    

    you can also verify the Maximum size of POST data that PHP will accept and Maximum allowed size for uploaded files in PHP.ini : post_max_size = ? upload_max_filesize = ?

提交回复
热议问题