> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: onFileDescriptorFileReady(event: FileDescriptorFileReady) # Method package: wixMediaV2 # Method menu location: wixMediaV2 --> onFileDescriptorFileReady # Method Link: https://dev.wix.com/docs/velo/events-service-plugins/media/events/on-file-descriptor-file-ready.md # Method Description: Triggered when a file is ready to be used, after any post-upload processing. This event is also triggred when a file is restored from the Media Manager's trash bin. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## An event that triggers when a file is ready to be used ```javascript // Place this code in the events.js file // of your site's Backend section. // Add the file if it doesn't exist. export function wixMediaSiteMedia_onFileDescriptorFileReady(event) { const displayName = event.data.file.displayName; const parentFolderId = event.data.parentFolderId; const eventTime = event.metadata.eventTime; console.log(`${displayName}, located in the parent folder with ID ${parentFolderId}, is ready to be used. Completion of post-upload processing was at ${eventTime}.`) } /* Full event object: * { * "data": { * "externalInfo": {}, * "file": { * "_createdDate": "2023-08-09T08:45:49.000Z", * "_id": "d4dde1_e26da94b5cb440649ede0c433425449c~mv2.jpg", * "_updatedDate": "2023-08-09T08:45:49.000Z", * "displayName": "mountains.jpg", * "hash": "800fae3e0cb7908518a391c25864436c", * "labels": [ * "mountainous range", * "mountain range", * "mountain peak", * "mountains", * "snow capped mountains", * "mountainous landscape" * ], * "media": { * "image": { * "colors": { * "palette": [ * { * "rgb": { * "b": 47, * "g": 36, * "r": 31 * } * }, * { * "rgb": { * "b": 155, * "g": 153, * "r": 195 * } * }, * { * "rgb": { * "b": 141, * "g": 123, * "r": 138 * } * }, * { * "rgb": { * "b": 177, * "g": 161, * "r": 190 * } * }, * { * "rgb": { * "b": 179, * "g": 178, * "r": 217 * } * }, * { * "rgb": { * "b": 160, * "g": 176, * "r": 229 * } * }, * { * "rgb": { * "b": 176, * "g": 151, * "r": 162 * } * }, * { * "rgb": { * "b": 93, * "g": 78, * "r": 71 * } * }, * { * "rgb": { * "b": 45, * "g": 63, * "r": 107 * } * }, * { * "rgb": { * "b": 104, * "g": 88, * "r": 82 * } * } * ], * "prominent": { * "rgb": { * "b": 47, * "g": 36, * "r": 31 * } * } * }, * "faces": [], * "image": "wix:image://v1/d4dde1_e26da94b5cb440649ede0c433425449c~mv2.jpg/mountains.jpg#originWidth=5833&originHeight=3894" * } * }, * "mediaType": "IMAGE", * "operationStatus": "READY", * "parentFolderId": "media-root", * "private": false, * "siteId": "c96bcd13-173a-4938-88e0-a126391adf49", * "sizeInBytes": "3013886", * "thumbnailUrl": "https://static.wixstatic.com/media/d4dde1_e26da94b5cb440649ede0c433425449c~mv2.jpg", * "url": "https://static.wixstatic.com/media/d4dde1_e26da94b5cb440649ede0c433425449c~mv2.jpg" * }, * "triggeredByUndelete": true * }, * "metadata": { * "entityId": "d4dde1_e26da94b5cb440649ede0c433425449c~mv2.jpg", * "eventTime": "2023-09-18T10:22:49.159Z", * "id": "6057a4bd-86d1-428e-bfe5-026dcc869ec3", * "triggeredByAnonymizeRequest": false * } * } */ ``` ---