Uploadifive 上传'fileType'格式如何限制?

Uploadifive:

'fileType':[

"application/pdf",

"application/msword",

"application/vnd.openxmlformats-officedocument.wordprocessingml.document",

"application/vnd.ms-excel",

"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",

"application/vnd.ms-powerpoint",

"application/vnd.openxmlformats-officedocument.presentationml.presentation",

"application/zip",

"application/x-rar-compressed",

],//限制允许上传的后缀

Uploadifive 格式过滤和Uploadify不太一样;

Uploadify:

'fileTypeExts': '*.doc; *.docx; *.xlsx; *.xls; *.ppt; *.pptx; *.pdf; *.zip; *.rar', //限制允许上传的图片后缀

 

文章来源:外星人来地球

欢迎关注,有问题一起学习欢迎留言、评论

posted @ 2019-07-11 14:51  刘俊涛的博客  阅读(2833)  评论(1编辑  收藏  举报