上传文件失败问题 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赋值成其它目录)

你可能感兴趣的:(php)