Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Tenner committed Mar 15, 2009
1 parent 745ff8a commit 4898a3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/num_fu.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def set_size_from_temp_path
end end


class FakeUploadData class FakeUploadData
attr_accessor :filename, :content_type, :path, :original_filename attr_accessor :filename, :content_type, :path, :original_filename, :size
end end


end end
1 change: 1 addition & 0 deletions lib/num_fu/upload_extractor.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def extract_upload(name="file")
fake_upload_data.path = params["#{name}"]["uploaded_data"][".path"] fake_upload_data.path = params["#{name}"]["uploaded_data"][".path"]
fake_upload_data.original_filename = params["#{name}"]["uploaded_data"][".name"] fake_upload_data.original_filename = params["#{name}"]["uploaded_data"][".name"]
fake_upload_data.content_type = params["#{name}"]["uploaded_data"][".content_type"] fake_upload_data.content_type = params["#{name}"]["uploaded_data"][".content_type"]
fake_upload_data.size = File.size(fake_upload_data.path)
params["#{name}"]["uploaded_data"] = fake_upload_data params["#{name}"]["uploaded_data"] = fake_upload_data
end end
end end
Expand Down

0 comments on commit 4898a3a

Please sign in to comment.