在codeigniter中上传do_upload()函数以外的视频

时间:2015-02-28 09:21:44

标签: php codeigniter video

我是按照功能do_upload()上传视频,但此功能仅上传MP4,ogg,webm,avi但不上传flv , 3gp & some files

我在mime.php中添加了mime类型的flv

video/x-flv 
video/3gpp

但它显示如下

The file type you attending to upload isn't allowed

如何上传这些文件或如何使用其他功能替换do_upload()

请帮助我....

1 个答案:

答案 0 :(得分:1)

在config / mimes.php中添加mime类型

'flv'    => array('video/x-flv', 'flv-application/octet-stream', 'application/octet-stream'),
'mp4' => 'video/mp4',
'3gp' => 'video/3gpp' 

试试这个Codeigniter : mp4 video won't upload, no error