lib/ruby-box/folder.rb in ruby-box-1.10.1 vs lib/ruby-box/folder.rb in ruby-box-1.10.2
- old
+ new
@@ -14,10 +14,10 @@
end
def upload_file(filename, data, overwrite=true)
file = RubyBox::File.new(@session, {
'name' => filename,
- 'parent' => RubyBox::User.new(@session, {'id' => id})
+ 'parent' => RubyBox::Folder.new(@session, {'id' => id})
})
begin
resp = file.upload_content(data) #write a new file. If there is a conflict, update the conflicted file.
rescue RubyBox::ItemNameInUse => e
\ No newline at end of file