import { FileUpload } from "@polar-sh/sdk/models/components/fileupload.js";
let value: FileUpload = {
id: "<value>",
organizationId: "<value>",
name: "<value>",
path: "/usr/ports",
mimeType: "<value>",
size: 270255,
storageVersion: "<value>",
checksumEtag: "<value>",
checksumSha256Base64: "<value>",
checksumSha256Hex: "<value>",
lastModifiedAt: new Date("2025-02-26T02:55:31.254Z"),
upload: {
id: "<id>",
path: "/usr/local/src",
parts: [
{
number: 945174,
chunkStart: 21083,
chunkEnd: 602576,
url: "https://dark-tusk.info/",
expiresAt: new Date("2024-10-10T12:43:57.564Z"),
},
],
},
version: "<value>",
service: "organization_avatar",
sizeReadable: "<value>",
};
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 |