上传后,部分图片丢失

时间:2014-06-26 06:56:28

标签: php image upload

我遇到一个问题,当用户将照片上传到我的服务器时,某些图像丢失或图像被破坏。

this is the wrecked image address

是否存在关于此问题的任何经验,为什么会发生以及如何处理它?<​​/ p>

我正在使用http://flourishlib.com/docs/fUpload类,

$uploader = new fUpload();
$uploader->setMIMETypes(
            array(
                'image/gif',
                'image/jpeg',
                'image/pjpeg',
                'image/png'
            ),
            'isNotImage'
        );
$uploaded = fUpload::count('file');
for ($i=0; $i < $uploaded; $i++) {
    try {
        $files[] = $uploader->move(FILE_PATH ."public/_file/uploads/slider/", 'file', $i);

    } catch (Exception $e) {
        $message[] = $e->getMessage();
        return FALSE;
    }

}

它在本地为我工作没有任何问题

0 个答案:

没有答案