1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Breathing room

This commit is contained in:
David Heinemeier Hansson 2017-07-04 17:00:41 +02:00
parent 5dfbc5878d
commit f5d663708b

View file

@ -8,7 +8,6 @@ class ActiveFile::Site::DiskSite < ActiveFile::Site
@root = root
end
def upload(key, io)
File.open(make_path_for(key), "wb") do |file|
while chunk = io.read(65536)