method

upload

rails latest stable - Class: ActiveStorage::Service::MirrorService
upload(key, io, checksum: nil, **options)
public

Upload the io to the key specified to all services. The upload to the primary service is done synchronously whereas the upload to the mirrors is done asynchronously. If a checksum is provided, all services will ensure a match when the upload has completed or raise an ActiveStorage::IntegrityError.