• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
挂在墙上的天堂
属于我的蓝白黑
博客园    首页    新随笔    联系   管理    订阅  订阅

【求助】如何使用swfupload上传超过1g文件?

在.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>

不知道是哪里设置有问题?各位指点一下谢谢!!

 附件中是我的代码文件,请指正

https://files.cnblogs.com/luyingxue/SwfUploadTestSite.rar 

posted @ 2008-09-16 09:53  卢巍  阅读(1612)  评论(1)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3