Skip to content

gi-nx


gi-nx / UploadProjectAttachmentOptions

ts
type UploadProjectAttachmentOptions = {
  attachmentId?: number;
  buffer: Uint8Array<ArrayBuffer>;
  contentType:   | "image/png"
     | "image/jpeg"
     | "image/webp"
     | "image/*"
     | "model/glb"
     | "model/gltf"
     | "application/json"
     | "application/pdf";
  name: string;
  viewableByGuests?: boolean;
};

Options for uploading a project attachment.

Properties

PropertyTypeDescription
attachmentId?numberSet if this is an existing project attachment that is being overwritten
bufferUint8Array<ArrayBuffer>File data as Uint8Array
contentType| "image/png" | "image/jpeg" | "image/webp" | "image/*" | "model/glb" | "model/gltf" | "application/json" | "application/pdf"MIME type of the file
namestringFilename for the attachment
viewableByGuests?booleanAllow users with guest access to the project to view this file