Skip to main content

Register a file uploaded via pre-signed URL

POST 

/api/v1/storage/register-uploaded-file

Step 3 of the 3-step upload flow. After PUTting the bytes to the pre-signed URL, call this with the fileId from generate-upload-url (plus the same folderPath and the display fileName) to make the file visible to list-files, get-file-metadata, and generate-download-url. Size and content type are read from the storage backend — client-declared values are not trusted. Idempotent: re-registering an already-registered fileId returns the existing file with registered: false. Registering before the upload completed returns 404.

Request

Responses

File registered (or already registered)