upload_presigned().
Signature
Omit
folder, key and folder_id and the asset lands in the project’s default folder.
See Folders & Paths for how paths resolve.
Returns
AnAsset:
Transforming on upload
Anything intransform is applied before storage, so the transformed result is what gets
stored and returned. The original is not kept.
url() instead keeps the original intact and serves any
number of variants from it.
Uploading bytes
bytes carry no filename, so pass one — otherwise the API can’t infer the type:
Errors
Uploads are never retried automatically — a repeat would store the file twice and bill it
twice. See Errors & Retries.