admin/KS.Picture.asp,找到如下语句:
-
// File Upload Settings
- file_size_limit : "600 KB", // 600KB file_types : "*.jpg; *.gif; *.png",
- file_types_description : "支持.JPG.gif.png格式的图片,可以多选",
- file_upload_limit : 0,
// Event Handler Settings - these functions as defined in Handlers.js
- // The handlers are not part of SWFUpload but are part of my website and control how
- // my website reacts to the SWFUpload events.
- swfupload_preload_handler : preLoad,
- swfupload_load_failed_handler : loadFailed,
- file_queue_error_handler : fileQueueError,
- file_dialog_complete_handler : fileDialogComplete,
- upload_progress_handler : uploadProgress,
- upload_error_handler : uploadError,
- upload_success_handler : uploadSuccess,
- upload_complete_handler : uploadComplete,
// Button Settings
- //button_image_url : "../plus/swfupload/images/SmallSpyGlassWithTransperancy_17x18d.png",
- button_placeholder_id : "spanButtonPlaceholder",
- button_width: 205,
- button_height: 22,
- button_text : '<span class="button">本地批量上传(单图限制600 KB)</span>',
红色字体部分是文件上传大小限制
蓝色字体部分是显示的按钮文本
粉红字体部分是按钮长度,根据实际需要自己调
补充几点:
1、如果你将原来默认的2MB修改为1MB后,最好刷新一下缓存,重新打开添加图片页面方能生效;
2、如果你再次需要修改上传数据限制时,无论你改成多少,都会以第二次修改的为准。比如你想再次将1MB修改为3MB时,在上传时会提示超出大小限制,必须是1MB的错误提示。这个时候的解决办法就是修改模型中的上传限制数值为3MB,重新刷新生即可。