File Descriptor Object


Docs for File in Media

Properties
idstringRead-onlymaxLength 1000

File ID. Generated when a file is uploaded to the Media Manager.


displayNamestringmaxLength 200

File name as it appears in the Media Manager.


urlstringRead-onlyformat WEB_URL

Static URL of the file.


parentFolderIdstringmaxLength 100

ID of the file's parent folder.


hashstringRead-onlymaxLength 100

File hash.


sizeInBytesstringRead-onlyformat DECIMAL_VALUEdecimalValue {"maxScale":0}

Size of the uploaded file in bytes.


privatebooleanRead-only

Whether the file is public or private. Learn more about private files (SDK | REST).


mediaTypestringRead-only

Media file type.


mediaMediaRead-only

Media file content.


operationStatusstringRead-only

Status of the file that was uploaded.

  • FAILED: The file failed to upload, for example, during media post processing.
  • READY: The file uploaded, finished all processing, and is ready for use.
  • PENDING: The file is processing and the URLs are not yet available. This response is returned when importing a file.

sourceUrlstringRead-onlyformat WEB_URL

URL where the file was uploaded from.


thumbnailUrlstringRead-onlyformat WEB_URL

URL of the file's thumbnail.


labelsArray <string>maxItems 100maxLength 200

Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by Google Vision API for images.


createdDatestringRead-onlyformat date-time

Date and time the file was created.


updatedDatestringRead-onlyformat date-time

Date and time the file was updated.


siteIdstringRead-onlymaxLength 100

The Wix site ID where the media file is stored.


statestringRead-only

State of the file.

FileDescriptor
JSON
{ "id": "2acbb8_66ffafe2e5d04335b968dc73dae5585c~mv2.jpg", "displayName": "17893305044257194.jpg", "url": "https://static.wixstatic.com/media/2acbb8_66ffafe2e5d04335b968dc73dae5585c~mv2.jpg", "parentFolderId": "0c237d681c214835a0b6817a83460281", "hash": "1742551494ee41965db67606e92eea7b", "sizeInBytes": "543594", "private": false, "mediaType": "IMAGE", "media": { "image": { "image": { "id": "2acbb8_66ffafe2e5d04335b968dc73dae5585c~mv2.jpg", "url": "https://static.wixstatic.com/media/2acbb8_66ffafe2e5d04335b968dc73dae5585c~mv2.jpg", "height": 1440, "width": 1440, "altText": null, "urlExpirationDate": null, "filename": "17893305044257194.jpg", "sizeInBytes": "543594" }, "colors": { "prominent": { "hex": null, "rgb": { "r": 59, "g": 64, "b": 48 } }, "palette": [ { "hex": null, "rgb": { "r": 48, "g": 51, "b": 34 } }, { "hex": null, "rgb": { "r": 208, "g": 215, "b": 220 } }, { "hex": null, "rgb": { "r": 170, "g": 189, "b": 187 } }, { "hex": null, "rgb": { "r": 143, "g": 157, "b": 183 } }, { "hex": null, "rgb": { "r": 148, "g": 145, "b": 116 } }, { "hex": null, "rgb": { "r": 112, "g": 133, "b": 100 } }, { "hex": null, "rgb": { "r": 96, "g": 103, "b": 118 } }, { "hex": null, "rgb": { "r": 188, "g": 132, "b": 116 } } ] }, "faces": [], "previewImage": null } }, "operationStatus": "READY", "sourceUrl": "https://scontent-ort2-1.cdninstagram.com/v/t51.29350-15/241700103_1062935620882008_1337643828921346293_n.jpg?_nc_cat=111&ccb=1-7&_nc_sid=8ae9d6&_nc_ohc=Wc_iebXyc7kAX935kvF&_nc_ht=scontent-ort2-1.cdninstagram.com&edm=ANQ71j8EAAAA&oh=00_AT_mgdZ83wBehP3EiHBnfHV_Zrx0ocXiwVoIim7DyKhpoQ&oe=631361E2", "thumbnailUrl": "https://static.wixstatic.com/media/2acbb8_66ffafe2e5d04335b968dc73dae5585c~mv2.jpg", "labels": [], "createdDate": "2022-08-30T17:17:52Z", "updatedDate": "2022-08-30T17:17:52Z", "state": "OK" }
Did this help?