app/controllers/neofiles/admin_controller.rb in neofiles-1.0.2 vs app/controllers/neofiles/admin_controller.rb in neofiles-1.0.3

- old
+ new

@@ -163,11 +163,11 @@ end Rails.application.config.neofiles.before_save.try!(:call, file) file.save! - # returns JSON {filelink: '/neofiles/serve-file/#{file.id}'} - render json: {filelink: neofiles_file_path(file), filename: file.filename} + # returns JSON {url: '/neofiles/serve-file/#{file.id}'} + render json: {filelink: neofiles_file_path(file), filename: file.filename, url: neofiles_file_path(file), name: file.filename} end # Returns JSON of files assigned to specific owner to show them in Redactor.js tab "previously uploaded files". # def redactor_list \ No newline at end of file