method
upload
rails latest stable - Class:
ActiveStorage::Service::DiskService
upload(key, io, checksum: nil, **)public
No documentation available.
# File activestorage/lib/active_storage/service/disk_service.rb, line 21
def upload(key, io, checksum: nil, **)
instrument :upload, key: key, checksum: checksum do
IO.copy_stream(io, make_path_for(key))
ensure_integrity_of(key, checksum) if checksum
end
end