Skip to content

Latest commit

 

History

History
58 lines (53 loc) · 7.59 KB

fileupload.md

File metadata and controls

58 lines (53 loc) · 7.59 KB

FileUpload

Example Usage

import { FileUpload } from "@polar-sh/sdk/models/components/fileupload.js";

let value: FileUpload = {
  id: "<value>",
  organizationId: "<value>",
  name: "<value>",
  path: "/Applications",
  mimeType: "<value>",
  size: 38529,
  storageVersion: "<value>",
  checksumEtag: "<value>",
  checksumSha256Base64: "<value>",
  checksumSha256Hex: "<value>",
  lastModifiedAt: new Date("2023-09-05T04:07:53.610Z"),
  upload: {
    id: "<id>",
    path: "/usr/libexec",
    parts: [
      {
        number: 399019,
        chunkStart: 505363,
        chunkEnd: 872509,
        url: "https://intent-rim.biz",
        expiresAt: new Date("2023-07-12T00:06:10.994Z"),
      },
    ],
  },
  version: "<value>",
  service: "organization_avatar",
  sizeReadable: "<value>",
};

Fields

Field Type Required Description
id string ✔️ The ID of the object.
organizationId string ✔️ N/A
name string ✔️ N/A
path string ✔️ N/A
mimeType string ✔️ N/A
size number ✔️ N/A
storageVersion string ✔️ N/A
checksumEtag string ✔️ N/A
checksumSha256Base64 string ✔️ N/A
checksumSha256Hex string ✔️ N/A
lastModifiedAt Date ✔️ N/A
upload components.S3FileUploadMultipart ✔️ N/A
version string ✔️ N/A
isUploaded boolean N/A
service components.FileServiceTypes ✔️ N/A
sizeReadable string ✔️ N/A