Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

finalizeFileUpload

Finalize a file upload by reading the actual size from object storage and persisting it on the File record.

Audience: Programmer

Finalize a file upload by reading the actual size from object storage and persisting it on the File record. Call this after the client has successfully uploaded bytes to the pre-signed URL returned by createFile.

Served by: file

Arguments

Name
Type
Default
Description

id

ID!

Returns

File!

Example

mutation FinalizeFileUpload($id: ID!) {
  finalizeFileUpload(id: $id) {
    contentType
    createdAt
    createdBy
    data
    dataTypeID
    dataTypeSlug
    deletedAt
    deletedBy
    description
    id
    name
    publicAlias
    publicURL
    refid
    reftype
    size
    tenantID
    updatedAt
    updatedBy
    url
  }
}

Last updated

Was this helpful?