Skip to content

Commit 952daaf

Browse files
committed
Chunk size Problems
1 parent 0219bb5 commit 952daaf

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

jQuery-File-Upload.MVC3/Content/FileUpload/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ $(function () {
2222
maxFileSize: 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999,
2323
resizeMaxWidth: 1920,
2424
resizeMaxHeight: 1200
25+
//,maxChunkSize: 130048 //1024*128 = 128 KB
2526
});
2627
});

jQuery-File-Upload.MVC3/Views/Home/Index.cshtml

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@
7575

7676
<!-- modal-gallery is the modal dialog used for the image gallery -->
7777
<div id="filesGallery" class="modal modal-gallery hide fade">
78-
<div class="modal-header">
78+
@*<div class="modal-header">
7979
<a class="close" data-dismiss="modal">&times;</a>
8080
<h3 class="modal-title"></h3>
81-
</div>
82-
<div class="modal-body"><div class="modal-image"></div></div>
81+
</div>*@
82+
@*<div class="modal-body"><div class="modal-image"></div></div>
8383
<div class="modal-footer">
8484
<a class="btn btn-primary modal-next">
8585
<span>Next</span>
@@ -97,8 +97,8 @@
9797
<i class="icon-download"></i>
9898
<span>Download</span>
9999
</a>
100+
</div>*@
100101
</div>
101-
</div>
102102

103103
<!-- The template to display files available for upload -->
104104
<script id="template-upload" type="text/x-tmpl">

jQuery-File-Upload.MVC3/Web.config

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
<configSections>
88
<section name="clientDependency" type="ClientDependency.Core.Config.ClientDependencySection, ClientDependency.Core" requirePermission="false"/>
99
</configSections>
10-
<location path="Upload">
10+
<!--<location path="Upload">
1111
<system.web>
12-
<httpRuntime maxRequestLength="999999999"/>
12+
<httpRuntime maxRequestLength="2097151" executionTimeout="100000"/>
1313
</system.web>
14-
</location>
14+
</location>-->
1515
<appSettings>
1616
<add key="webpages:Version" value="1.0.0.0"/>
1717
<add key="ClientValidationEnabled" value="true"/>
1818
<add key="UnobtrusiveJavaScriptEnabled" value="true"/>
1919
</appSettings>
2020
<system.web>
21-
<httpRuntime maxRequestLength="999999999"/>
21+
<httpRuntime maxRequestLength="2097151" executionTimeout="100000"/>
2222
<pages>
2323
<namespaces>
2424
<add namespace="System.Web.Helpers"/>

0 commit comments

Comments
 (0)