File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
filer/static/filer/js/addons Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ if (django.jQuery) {
29
29
var infoMessage = $ ( '.js-filer-dropzone-info-message' ) ;
30
30
var hiddenClass = 'hidden' ;
31
31
var maxUploaderConnections = uploadButton . data ( 'max-uploader-connections' ) || 3 ;
32
+ var maxFilesize = parseInt ( uploadButton . data ( 'max-filesize' ) || 0 , 10 ) * 1048576 ;
32
33
var hasErrors = false ;
33
34
var updateUploadNumber = function ( ) {
34
35
uploadNumber . text ( maxSubmitNum - submitNum + '/' + maxSubmitNum ) ;
@@ -59,6 +60,7 @@ if (django.jQuery) {
59
60
action : uploadUrl ,
60
61
button : uploadButton [ 0 ] ,
61
62
maxConnections : maxUploaderConnections ,
63
+ sizeLimit : maxFilesize ,
62
64
onSubmit : function ( id ) {
63
65
Cl . mediator . remove ( 'filer-upload-in-progress' , removeButton ) ;
64
66
Cl . mediator . publish ( 'filer-upload-in-progress' ) ;
You can’t perform that action at this time.
0 commit comments