Skip to content

Commit

Permalink
Fix, downloaded file was not being stored in the correct folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Youch committed May 6, 2010
1 parent 0b55296 commit e0f2a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/inline_file_upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def handle_file_upload(renderer, params)

if uri
begin
domain_file = DomainFile.create :filename => uri, :creator_id => renderer.myself.id
domain_file = DomainFile.create :filename => uri, :creator_id => renderer.myself.id, :parent_id => self.folder_id
params[:file][:file_id] = domain_file.id if domain_file.id
self.file_id = domain_file.id
rescue Exception => e
Expand Down

0 comments on commit e0f2a98

Please sign in to comment.