#177 - 1.4.7-devel unable to upload files
This commit is contained in:
parent
e70b0cc6c6
commit
2f2e108eaf
@ -52,6 +52,8 @@ class DmsfController < ApplicationController
|
||||
0
|
||||
end
|
||||
end
|
||||
|
||||
@ajax_upload_size = Setting.plugin_redmine_dmsf['dmsf_max_ajax_upload_filesize'].present? ? Setting.plugin_redmine_dmsf['dmsf_max_ajax_upload_filesize'] : 100
|
||||
end
|
||||
|
||||
def entries_operation
|
||||
|
||||
@ -25,10 +25,10 @@
|
||||
<%= l(:label_file_size) %>:
|
||||
<select id="uploader_select">
|
||||
<option value="1">
|
||||
< <%= "#{Setting.plugin_redmine_dmsf['dmsf_max_ajax_upload_filesize']}" %> MB
|
||||
< <%= "#{@ajax_upload_size}" %> MB
|
||||
</option>
|
||||
<option value="2">
|
||||
> <%= "#{Setting.plugin_redmine_dmsf['dmsf_max_ajax_upload_filesize']}" %> MB
|
||||
> <%= "#{@ajax_upload_size}" %> MB
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
@ -105,7 +105,7 @@
|
||||
uploader.plupload({
|
||||
runtimes : 'html5,flash,html4',
|
||||
url : '<%= url_for({:controller => 'dmsf_upload', :action => 'upload_file', :id => @project}) %>',
|
||||
max_file_size : '<%= "#{Setting.plugin_redmine_dmsf['dmsf_max_ajax_upload_filesize']}mb" %>',
|
||||
max_file_size : '<%= "#{@ajax_upload_size}mb" %>',
|
||||
max_file_count: '<%= Setting.plugin_redmine_dmsf['dmsf_max_file_upload'].to_i if Setting.plugin_redmine_dmsf['dmsf_max_file_upload'].to_i > 0 %>',
|
||||
multipart: true,
|
||||
multipart_params : {authenticity_token : jQuery('input[name=authenticity_token]').val()},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user