[英]Not able to upload `.flv` - file(s) with ng2-file-upload
Here is my mime types: 这是我的哑剧类型:
allowedMimeType = [
'image/jpeg',
'video/x-msvideo',
'application/x-troff-msvideo',
'video/avi',
'video/msvideo',
'video/x-msvideo',
'application/x-shockwave-flash',
'video/x-flv',
'video/x-ms-wmv',
'video/quicktime',
'video/mp4',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/msword',
'text/plain'
];
when i try to upload the .flv
- files, getting error as invalid file type
. 当我尝试上传
.flv
文件时,由于invalid file type
而出现错误。 what is wrong with my declaration? 我的声明有什么问题? any one help me?
有人帮我吗?
all other file types are working fine. 所有其他文件类型都可以正常工作。
this.fileUploader = new FileUploader( { allowedMimeType: this.allowedMimeType, maxFileSize: this.singleMaxFileSize, removeAfterUpload: true, queueLimit: 1 } );
It's because of windows configuration. 这是因为Windows配置。 In the windows 10,
regedit
- flv
is not added with content-type
- after added it works. 在Windows 10中,
regedit
- flv
未添加content-type
flv
添加后起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.