1、WIN2003服务器本身默认上传200KB,其解决办法如下:
先进"服务"关闭iis admin service服务
会提示:World Wide Web Publishing Service 和 HTTP SSL这两个也会停止。
找到 windows/system32/inetsrv/下的metabase.xml 用记事本打开.
编辑其中的 ASPMaxRequestEntityAllowed 把他修改为需要的值,默认为204800,即200K
最后重启iis admin service服务!
2、程序设计的时候只允许上传200KB,具体自己修改即可。
window.onload = function() {
var settings = {
flash_url : "swfupload/swfupload.swf",
upload_url: "upload.asp",
file_size_limit : "100000 MB",
file_types : "*.*",
file_types_description : "All Files",
file_upload_limit : 100,
file_queue_limit : 0,
custom_settings : {
progressTarget : "fsUploadProgress",
cancelButtonId : "btnCancel"
},
debug: false,
// Button settings
button_image_url: "images/filebotton.png",
button_width: "65",
button_height: "29",
button_placeholder_id: "spanButtonPlaceHolder",
button_text: '',
button_text_style: ".theFont { font-size: 16; }",
button_text_left_padding: 12,
button_text_top_padding: 3,
// The event handler functions are defined in handlers.js
file_queued_handler : fileQueued,
file_queue_error_handler : fileQueueError,
file_dialog_complete_handler : fileDialogComplete,
upload_start_handler : uploadStart,
upload_progress_handler : uploadProgress,
upload_error_handler : uploadError,
upload_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
queue_complete_handler : queueComplete // Queue plugin event
};
swfu = new SWFUpload(settings);
};