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', //限制允许上传的图片后缀
文章来源:外星人来地球
欢迎关注,有问题一起学习欢迎留言、评论
你要保守你心,胜过保守一切。
本文来自博客园,作者:刘俊涛的博客,转载请注明原文链接:https://www.cnblogs.com/lovebing/p/11169959.html