diff --git a/app/controllers/files_controller.rb b/app/controllers/files_controller.rb index fbf798c64..b4604892d 100644 --- a/app/controllers/files_controller.rb +++ b/app/controllers/files_controller.rb @@ -195,6 +195,8 @@ class FilesController < ApplicationController attachment = Attachment.new attachment.container = @course attachment.course_second_category_id = course_second_category_id + attachment.filename = params[:name] + attachment.link = params[:link] attachment.description = params[:description] attachment.is_public = params[:is_public] && @course.is_public == 1 ? 1 : 0 attachment.is_publish = @atta_is_publish