diff --git a/app/controllers/my_profile/cms_controller.rb b/app/controllers/my_profile/cms_controller.rb index 9da564e..a1dbeae 100644 --- a/app/controllers/my_profile/cms_controller.rb +++ b/app/controllers/my_profile/cms_controller.rb @@ -322,8 +322,8 @@ class CmsController < MyProfileController if request.post? @file = UploadedFile.create(:uploaded_data => params[:file], :profile => profile, :parent => parent) unless params[:file] == '' end + @file = FilePresenter.for(@file) #render :text => article_list_to_json([file]), :content_type => 'text/plain' - render :text => '' end protected diff --git a/app/views/cms/_text_editor_sidebar.html.erb b/app/views/cms/_text_editor_sidebar.html.erb index 389e09b..edb3499 100644 --- a/app/views/cms/_text_editor_sidebar.html.erb +++ b/app/views/cms/_text_editor_sidebar.html.erb @@ -19,13 +19,21 @@

<%= file_field_tag('file', :multiple => true) %>

<% end %> -