search

Home  >  Q&A  >  body text

php - I encountered some problems with image uploading, and I can’t find the reason. Could you help me figure it out?

这是上面打印的 消息内容
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

某草草某草草2786 days ago495

reply all(2)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-27 17:44:16

    post_max_size

    upload_max_size

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-27 17:44:16

    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.

    reply
    0
  • Cancelreply