F-4898 set max upload file in sunstone

This commit is contained in:
juanmont committed 2016-11-08 15:21:47 +01:00
1 parent ad74e4fe2d
commit fb5d36e96e
2 files changed
+3 -1

No files matched your search

@@ -263,6 +263,7 @@ define(function(require) {
target: 'upload_chunk',
chunkSize: 10 * 1024 * 1024,
maxFiles: 1,
maxFileSize: config['system_config']['max_upload_file_size'],
testChunks: false,
query: {
csrftoken: csrftoken
+2 -1
View File
@@ -36,7 +36,8 @@
'system_config' : {
'marketplace_url' : '<%= $conf[:marketplace_url] %>',
'vnc_request_password' : <%= $conf[:vnc_request_password] || false %>,
'vnc_proxy_port' : '<%= $vnc.proxy_port %>'
'vnc_proxy_port' : '<%= $vnc.proxy_port %>',
'max_upload_file_size' : <%= $conf[:max_upload_file_size] ? $conf[:max_upload_file_size] : "undefined" %>
},
'view' : view,
'available_views' : available_views,