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.
function onFileDescriptorFileReady(handler: function): void;
handler(event: FileDescriptorFileReadyEnvelope): void | Promise<void>
import { files } from "@wix/media";
files.onFileDescriptorFileReady((event) => {
// handle your event here
});