在.net2.0项目中应用swfupload,发现我的设置只能上传30M以下文件,超过30M就会弹出404错误提示。以下是我的设置:
Web.Config中:
<httpRuntime maxRequestLength="1048576" executionTimeout="3600"/>
Default.aspx中:
1
<
script type
=
"
text/javascript
"
>
2 var swfu;
3 window.onload = function () {
4 swfu = new SWFUpload({
5 // Backend Settings
6 upload_url: "upload.aspx", // Relative to the SWF file
7 post_params : {
8 "ASPSESSID" : "<%=Session.SessionID %>"
9 },
10
11 // File Upload Settings
12 file_size_limit : "0", // 无限制
13 file_types : "*.*",
14 file_types_description : "JPG Images",
15 file_upload_limit : "0", // Zero means unlimited
16
17 // Event Handler Settings - these functions as defined in Handlers.js
18 // The handlers are not part of SWFUpload but are part of my website and control how
19 // my website reacts to the SWFUpload events.
20 file_queue_error_handler : fileQueueError,
21 file_dialog_complete_handler : fileDialogComplete,
22 upload_progress_handler : uploadProgress,
23 upload_error_handler : uploadError,
24 upload_success_handler : uploadSuccess,
25 upload_complete_handler : uploadComplete,
26
27 // Flash Settings
28 flash_url : "swfupload/swfupload_f9.swf", // Relative to this file
29
30 custom_settings : {
31 upload_target : "divFileProgressContainer"
32 },
33
34 // Debug Settings
35 debug: false
36 });
37 }
38 < / script>
2 var swfu;
3 window.onload = function () {
4 swfu = new SWFUpload({
5 // Backend Settings
6 upload_url: "upload.aspx", // Relative to the SWF file
7 post_params : {
8 "ASPSESSID" : "<%=Session.SessionID %>"
9 },
10
11 // File Upload Settings
12 file_size_limit : "0", // 无限制
13 file_types : "*.*",
14 file_types_description : "JPG Images",
15 file_upload_limit : "0", // Zero means unlimited
16
17 // Event Handler Settings - these functions as defined in Handlers.js
18 // The handlers are not part of SWFUpload but are part of my website and control how
19 // my website reacts to the SWFUpload events.
20 file_queue_error_handler : fileQueueError,
21 file_dialog_complete_handler : fileDialogComplete,
22 upload_progress_handler : uploadProgress,
23 upload_error_handler : uploadError,
24 upload_success_handler : uploadSuccess,
25 upload_complete_handler : uploadComplete,
26
27 // Flash Settings
28 flash_url : "swfupload/swfupload_f9.swf", // Relative to this file
29
30 custom_settings : {
31 upload_target : "divFileProgressContainer"
32 },
33
34 // Debug Settings
35 debug: false
36 });
37 }
38 < / script>
不知道是哪里设置有问题?各位指点一下谢谢!!
附件中是我的代码文件,请指正