method

service_url_for_direct_upload

rails latest stable - Class: ActiveStorage::Blob
service_url_for_direct_upload(expires_in: ActiveStorage.service_urls_expire_in)
public

Returns a URL that can be used to directly upload a file for this blob on the service. This URL is intended to be short-lived for security and only generated on-demand by the client-side JavaScript responsible for doing the uploading.