Laravel 文件上传失败的问题 error 7
Posted mouseleo
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Laravel 文件上传失败的问题 error 7相关的知识,希望对你有一定的参考价值。
一个站点上传文件失败 error为7 UPLOAD_ERR_CANT_WRITE
临时文件上传不上 $_FILE打出来
Array
(
[file] => Array
(
[name] => Array
(
[0] => 6b60e7d0cc369cdb6897b26e1fe5230c.jpg
)
[type] => Array
(
[0] =>
)
[tmp_name] => Array
(
[0] =>
)
[error] => Array
(
[0] => 7
)
[size] => Array
(
[0] => 0
)
)
)
error为7 百度浪费了好长时间也没有解决
后来 df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 20G 20G 0 100% /
tmpfs 16G 0 16G 0% /dev/shm
/dev/sda1 194M 31M 153M 17% /boot
/dev/mapper/VolGroup00-data
1.3T 94G 1.2T 8% /data
发现问题了 移动了些ng日志到 data下 然后可以了
(或者upload_tmp_dir赋值成其它目录)
以上是关于Laravel 文件上传失败的问题 error 7的主要内容,如果未能解决你的问题,请参考以下文章
SQLSTATE [23502]:非空违规:7 错误 - laravel
Error Laravel 5.4以.bin格式上传.docs
Laravel File Upload with Ajax Show 405 Method Not Allowed Error on Large File Size 20 MB