search

Home  >  Q&A  >  body text

Problem with file upload in Laravel

PHP file upload, use the simplest form upload form:

image.png

Background acquisition (also used Request acquisition, the result is the same):

image.png

But the file I obtained only has the name of the file, and there is no other file content.

php.ini settings:

image.png

image.png

I would like to ask you guys for advice, or if there is any other way to solve the problem?%8

乔治乔治1832 days ago1122

reply all(3)I'll reply

  • 心若联通又怎会移动

    心若联通又怎会移动2019-11-22 12:16:48

    Go to Baidu to find out what causes error code 6 and you’ll be done.

    reply
    0
  • 乔治

    乔治2019-11-18 16:18:47

    image.pngThis is the data obtained by background printing. It can obtain the file name, but there is no content. Baidu error code 6, I set the relevant settings of php.ini, but it still doesn’t work

    reply
    1
  • 卢小强

    https://www.runoob.com/php/php-file-upload.html, the uploaded file is stored in the temporary file tmp. Go and see how to save it.

    卢小强 · 2019-11-20 09:07:53
  • Cancelreply