lib/dbox/db.rb in dbox-0.6.7 vs lib/dbox/db.rb in dbox-0.6.8

- old
+ new

@@ -515,12 +515,10 @@ end update_file_timestamp end def upload - File.open(local_path) do |f| - api.put_file(remote_path, f) - end + api.put_file(remote_path, local_path) force_metadata_update_from_server end end end end