@@ -223,6 +223,11 @@ const postDataCompress = function (url, data, successCallback, errorCallBack, ht
*/
const postDataWithFile = function (url, formData, successCallback, errorCallBack, showWaiting = true) {
if (showWaiting) showWaitingView();
+ if (formData.getAll('file[]').length > 10) {
+ toastr.error('文件数量不能多于10个');
+ if (showWaiting) closeWaitingView();
+ return
+ }
$.ajax({
type:"POST",
url: url,