上传文件限制
This commit is contained in:
parent
38be1b2e5f
commit
e6d3e29ca1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue