Returns an object URL for the file matching the given upload ref, or null if no matching file is found.
null
The file input element associated with the upload.
The upload ref identifying the file entry.
import { getFileURLForUpload } from "phoenix_live_view"let url = getFileURLForUpload(inputEl, uploadRef)if (url) { imgEl.src = url } Copy
import { getFileURLForUpload } from "phoenix_live_view"let url = getFileURLForUpload(inputEl, uploadRef)if (url) { imgEl.src = url }
Returns an object URL for the file matching the given upload ref, or
nullif no matching file is found.