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