Method: ActiveStorage::Service#upload

Defined in:
activestorage/lib/active_storage/service.rb

#upload(key, io, checksum: nil, **options) ⇒ Object

Upload the io to the key specified. If a checksum is provided, the service will ensure a match when the upload has completed or raise an ActiveStorage::IntegrityError.

Raises:

  • (NotImplementedError)


71
72
73
# File 'activestorage/lib/active_storage/service.rb', line 71

def upload(key, io, checksum: nil, **options)
  raise NotImplementedError
end