Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit 2357bc9

Browse files
committed
Adjust client implementations for new demo file size restrictions.
1 parent 86d3ed6 commit 2357bc9

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

angularjs.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ <h3 class="panel-title">Demo Notes</h3>
157157
</div>
158158
<div class="panel-body">
159159
<ul>
160-
<li>The maximum file size for uploads in this demo is <strong>5 MB</strong> (default file size is unlimited).</li>
160+
<li>The maximum file size for uploads in this demo is <strong>999 KB</strong> (default file size is unlimited).</li>
161161
<li>Only image files (<strong>JPG, GIF, PNG</strong>) are allowed in this demo (by default there is no file type restriction).</li>
162-
<li>Uploaded files will be deleted automatically after <strong>5 minutes</strong> (demo setting).</li>
162+
<li>Uploaded files will be deleted automatically after <strong>5 minutes or less</strong> (demo files are stored in memory).</li>
163163
<li>You can <strong>drag &amp; drop</strong> files from your desktop on this webpage (see <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support">Browser support</a>).</li>
164164
<li>Please refer to the <a href="https://github.com/blueimp/jQuery-File-Upload">project website</a> and <a href="https://github.com/blueimp/jQuery-File-Upload/wiki">documentation</a> for more information.</li>
165165
<li>Built with the <a href="http://getbootstrap.com/">Bootstrap</a> CSS framework and Icons from <a href="http://glyphicons.com/">Glyphicons</a>.</li>
@@ -207,5 +207,5 @@ <h3 class="title"></h3>
207207
<script src="js/jquery.fileupload-angular.js"></script>
208208
<!-- The main application script -->
209209
<script src="js/app.js"></script>
210-
</body>
210+
</body>
211211
</html>

basic-plus.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ <h3 class="panel-title">Demo Notes</h3>
8686
</div>
8787
<div class="panel-body">
8888
<ul>
89-
<li>The maximum file size for uploads in this demo is <strong>5 MB</strong> (default file size is unlimited).</li>
89+
<li>The maximum file size for uploads in this demo is <strong>999 KB</strong> (default file size is unlimited).</li>
9090
<li>Only image files (<strong>JPG, GIF, PNG</strong>) are allowed in this demo (by default there is no file type restriction).</li>
91-
<li>Uploaded files will be deleted automatically after <strong>5 minutes</strong> (demo setting).</li>
91+
<li>Uploaded files will be deleted automatically after <strong>5 minutes or less</strong> (demo files are stored in memory).</li>
9292
<li>You can <strong>drag &amp; drop</strong> files from your desktop on this webpage (see <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support">Browser support</a>).</li>
9393
<li>Please refer to the <a href="https://github.com/blueimp/jQuery-File-Upload">project website</a> and <a href="https://github.com/blueimp/jQuery-File-Upload/wiki">documentation</a> for more information.</li>
9494
<li>Built with the <a href="http://getbootstrap.com/">Bootstrap</a> CSS framework and Icons from <a href="http://glyphicons.com/">Glyphicons</a>.</li>
@@ -150,7 +150,7 @@ <h3 class="panel-title">Demo Notes</h3>
150150
dataType: 'json',
151151
autoUpload: false,
152152
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
153-
maxFileSize: 5000000, // 5 MB
153+
maxFileSize: 999000,
154154
// Enable image resizing, except for Android and Opera,
155155
// which actually support image resizing, but fail to
156156
// send Blob objects via XHR requests:
@@ -222,5 +222,5 @@ <h3 class="panel-title">Demo Notes</h3>
222222
.parent().addClass($.support.fileInput ? undefined : 'disabled');
223223
});
224224
</script>
225-
</body>
225+
</body>
226226
</html>

basic.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ <h3 class="panel-title">Demo Notes</h3>
8686
</div>
8787
<div class="panel-body">
8888
<ul>
89-
<li>The maximum file size for uploads in this demo is <strong>5 MB</strong> (default file size is unlimited).</li>
89+
<li>The maximum file size for uploads in this demo is <strong>999 KB</strong> (default file size is unlimited).</li>
9090
<li>Only image files (<strong>JPG, GIF, PNG</strong>) are allowed in this demo (by default there is no file type restriction).</li>
91-
<li>Uploaded files will be deleted automatically after <strong>5 minutes</strong> (demo setting).</li>
91+
<li>Uploaded files will be deleted automatically after <strong>5 minutes or less</strong> (demo files are stored in memory).</li>
9292
<li>You can <strong>drag &amp; drop</strong> files from your desktop on this webpage (see <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support">Browser support</a>).</li>
9393
<li>Please refer to the <a href="https://github.com/blueimp/jQuery-File-Upload">project website</a> and <a href="https://github.com/blueimp/jQuery-File-Upload/wiki">documentation</a> for more information.</li>
94-
<li>Built with <a href="http://getbootstrap.com/">Bootstrap</a> and Icons from <a href="http://glyphicons.com/">Glyphicons</a>.</li>
94+
<li>Built with the <a href="http://getbootstrap.com/">Bootstrap</a> CSS framework and Icons from <a href="http://glyphicons.com/">Glyphicons</a>.</li>
9595
</ul>
9696
</div>
9797
</div>
@@ -132,5 +132,5 @@ <h3 class="panel-title">Demo Notes</h3>
132132
.parent().addClass($.support.fileInput ? undefined : 'disabled');
133133
});
134134
</script>
135-
</body>
135+
</body>
136136
</html>

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ <h3 class="panel-title">Demo Notes</h3>
121121
</div>
122122
<div class="panel-body">
123123
<ul>
124-
<li>The maximum file size for uploads in this demo is <strong>5 MB</strong> (default file size is unlimited).</li>
124+
<li>The maximum file size for uploads in this demo is <strong>999 KB</strong> (default file size is unlimited).</li>
125125
<li>Only image files (<strong>JPG, GIF, PNG</strong>) are allowed in this demo (by default there is no file type restriction).</li>
126-
<li>Uploaded files will be deleted automatically after <strong>5 minutes</strong> (demo setting).</li>
126+
<li>Uploaded files will be deleted automatically after <strong>5 minutes or less</strong> (demo files are stored in memory).</li>
127127
<li>You can <strong>drag &amp; drop</strong> files from your desktop on this webpage (see <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support">Browser support</a>).</li>
128128
<li>Please refer to the <a href="https://github.com/blueimp/jQuery-File-Upload">project website</a> and <a href="https://github.com/blueimp/jQuery-File-Upload/wiki">documentation</a> for more information.</li>
129129
<li>Built with the <a href="http://getbootstrap.com/">Bootstrap</a> CSS framework and Icons from <a href="http://glyphicons.com/">Glyphicons</a>.</li>
@@ -251,5 +251,5 @@ <h3 class="title"></h3>
251251
<!--[if (gte IE 8)&(lt IE 10)]>
252252
<script src="js/cors/jquery.xdr-transport.js"></script>
253253
<![endif]-->
254-
</body>
254+
</body>
255255
</html>

jquery-ui.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ <h2>jQuery UI version</h2>
127127
<br>
128128
<h3>Demo Notes</h3>
129129
<ul>
130-
<li>The maximum file size for uploads in this demo is <strong>5 MB</strong> (default file size is unlimited).</li>
130+
<li>The maximum file size for uploads in this demo is <strong>999 KB</strong> (default file size is unlimited).</li>
131131
<li>Only image files (<strong>JPG, GIF, PNG</strong>) are allowed in this demo (by default there is no file type restriction).</li>
132-
<li>Uploaded files will be deleted automatically after <strong>5 minutes</strong> (demo setting).</li>
132+
<li>Uploaded files will be deleted automatically after <strong>5 minutes or less</strong> (demo files are stored in memory).</li>
133133
<li>You can <strong>drag &amp; drop</strong> files from your desktop on this webpage (see <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support">Browser support</a>).</li>
134134
<li>Please refer to the <a href="https://github.com/blueimp/jQuery-File-Upload">project website</a> and <a href="https://github.com/blueimp/jQuery-File-Upload/wiki">documentation</a> for more information.</li>
135135
<li>Built with <a href="https://jqueryui.com">jQuery UI</a>.</li>
@@ -246,5 +246,5 @@ <h3 class="title"></h3>
246246
<!--[if (gte IE 8)&(lt IE 10)]>
247247
<script src="js/cors/jquery.xdr-transport.js"></script>
248248
<![endif]-->
249-
</body>
249+
</body>
250250
</html>

js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
// send Blob objects via XHR requests:
3838
disableImageResize: /Android(?!.*Chrome)|Opera/
3939
.test(window.navigator.userAgent),
40-
maxFileSize: 5000000,
40+
maxFileSize: 999000,
4141
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i
4242
});
4343
}

js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $(function () {
4040
// send Blob objects via XHR requests:
4141
disableImageResize: /Android(?!.*Chrome)|Opera/
4242
.test(window.navigator.userAgent),
43-
maxFileSize: 5000000,
43+
maxFileSize: 999000,
4444
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i
4545
});
4646
// Upload server status check for browsers with CORS support:

0 commit comments

Comments
 (0)