上传文件限制

This commit is contained in:
caoqianming 2020-02-18 11:42:29 +08:00
parent 38be1b2e5f
commit e6d3e29ca1
1 changed files with 2 additions and 2 deletions

View File

@ -255,8 +255,8 @@
var imagSize = fileObj.size;
if (imagSize > 1024 * 1024 * 10) {
alert("文件大小为:" + (imagSize / (1024 * 1024)).toFixed(2) + "M超出了上传大小" + "请选择10M以内的文件");
if (imagSize > 1024 * 1024 * 100) {
alert("文件大小为:" + (imagSize / (1024 * 1024)).toFixed(2) + "M超出了上传大小" + "请选择100M以内的文件");
$("#videoName").text('文件太大了超出范围!');
return false;
}