method
service_url_for_direct_upload
v5.2.3 -
Show latest stable
- Class:
ActiveStorage::Blob
service_url_for_direct_upload(expires_in: service.url_expires_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.