1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Merge pull request #144 from juanmont/F-4898

F-4898 set max upload file in sunstone
This commit is contained in:
Javi Fontan 2016-11-10 15:17:17 +01:00 committed by GitHub
commit e4fbee2c7e
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -37,7 +37,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,