v1
File Manager
File Manager

Confirm File Uploads

Changed on

Register a whole upload batch, each file in its folder (JEEVY-2146, JEEVY-2177, JEEVY-2178).

Body: { project_id | quote_id, group_id?, files: [{ filePath, fileName, mimeType?, size?, description?, relativePath?, groupId?, sourceType?, sourceSubtype? }] }. group_id is the drop target (root when absent). relativePath is the pick's webkitRelativePath; its directory part is created under the target, once, parent before child, and the file is created IN that folder. An item's own groupId (a folder of this owner, as folders in an earlier answer named it) puts the file there instead, so a retry lands where its siblings did. An upload makes exactly what was picked: every folder in the pick is created, even beside one of the same name, and a file keeps the name it was uploaded with, even beside a file of the same name (Q8 on JEEVY-2175, reversed 2026-11-02: the storage key is the identity, a name is a label, and the rename cost a read of every live name per batch). Nothing existing is read or modified.

Validation is per item (a bad path or source type fails that file alone); the write is one registration call for every good item, two statements (JEEVY-2268 item 31), so a database failure fails them all together and the client keeps them staged for a retry, which the unique index on files(bucket, storage_path) makes safe. Returns { results: [{ filePath, ok, file, source } | { filePath, ok: false, error, status }], partial, folders } with results in the order given and folders the relativeDir -> group_id map. The folder tree is built before any file is registered, so a folder failure fails the whole request with nothing created.

post/api/v1/files/confirm-uploads

Request

  • Base URL
    https://api.jeevyfabrication.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

object required

Response

Successful Response

object required

Changes