Skip to main content
Finalizes a presigned upload once its bytes are in storage. Until it is confirmed, the upload isn’t an asset: it has no delivery URL and isn’t listed by list_media().

Signature

Returns an Asset, the same shape upload() returns.

Confirming too early

Storage takes a moment to make freshly written bytes readable. Confirming inside that window raises DreepConflictError:
upload_presigned() already handles this for you, retrying the confirm while the bytes settle. Write the retry yourself only when the PUT happened somewhere you don’t control, such as a browser.
Retry the confirm, never the upload. The bytes are already in storage; re-uploading them stores and bills the file twice.

Errors