php - I encountered some problems with image uploading, and I can't find the reason. Could you help me figure it out?
某草草
某草草 2017-05-27 17:42:16
0
2
407

这是上面打印的 消息内容 dd($file->guessClientExtension(),$file->getClientOriginalExtension(),$request->file('image'));

my question:

  1. The first one is printing in the online environment (Alibaba Cloud) (the upload failed because the specific information of the file cannot be recognized)

  2. The second is the printing of the online test environment (the physical machine is successful)

  3. The problem is that the same picture and the same code read different information. Please help me guess the reason.

  4. The configuration in php.ini is the same for Ali and test

某草草
某草草

reply all (2)
过去多啦不再A梦

post_max_size

upload_max_size

    仅有的幸福

    If you compare size and error carefully, you can see that the first file has not been read at all, so it is recommended to check the path permissions. This is a deployment problem.

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!