Yii3.0 can’t upload files with only a file name with httpsoft message fileupload

发布者: 粮油菜大市场 发布时间: 2021.11.29 04:43:41

 

I/flutter ( 4124):       ["size":"HttpSoft\Message\Stream":private]=>

I/flutter ( 4124):       NULL

I/flutter ( 4124):       ["seekable":"HttpSoft\Message\Stream":private]=>

I/flutter ( 4124):       NULL

I/flutter ( 4124):       ["writable":"HttpSoft\Message\Stream":private]=>

I/flutter ( 4124):       NULL

I/flutter ( 4124):       ["readable":"HttpSoft\Message\Stream":private]=>

I/flutter ( 4124):       NULL

I/flutter ( 4124):     }

I/flutter ( 4124):     ["file":"HttpSoft\Message\UploadedFile":private]=>

I/flutter ( 4124):     NULL

I/flutter ( 4124):     ["size":"HttpSoft\Message\UploadedFile":private]=>

I/flutter ( 4124):     int(508081)

I/flutter ( 4124):     ["error":"HttpSoft\Message\UploadedFile":private]=>

I/flutter ( 4124):     int(0)

I/flutter ( 4124):     ["clientFilename":"HttpSoft\Message\UploadedFile":private]=>

I/flutter ( 4124):     string(35) "image_picker2327524825930727230.jpg"

I/flutter ( 4124):     ["clientMediaType":"HttpSoft\Message\UploadedFile":private]=>

I/flutter ( 4124):     string(24) "application/octet-stream"

I/flutter ( 4124):     ["isMoved":"HttpSoft\

 

 

it seems there is problems with my server,
can’t create tmpfile() when upload, i will check ,thank you

it worked after set php upload_tmp_dir
and upgrade the system, now php version is 8.0.9
i don’t know what make it works

 

搬到新服务器从App上传图片一样,也没反应,报错也没有,还好想起来以前好像发生过,一搜索还找到了当初发的贴子,确实是upload_tmp_dir没设置的问题,按道理有默认的位置啊

https://forum.yiiframework.com/t/yii3-0-cant-upload-files-with-only-a-file-name/132717/2

评论
登陆评论

没有评论