Attach files to `live_file_input` from js

found the solution

import LiveUploader from "phoenix_live_view/assets/js/phoenix_live_view/live_uploader"

///...

const file = new File([blob], "avatar_preview.jpeg", { type: "image/jpeg" });
LiveUploader.trackFiles(fileInput, files)
fileInput.dispatchEvent(new Event("input", {bubbles: true}))