Skip to content

Instantly share code, notes, and snippets.

@ahmednuaman
Created April 22, 2024 15:54
Show Gist options
  • Save ahmednuaman/43e132c4e9b10e4a7c93366309bef8d7 to your computer and use it in GitHub Desktop.
Save ahmednuaman/43e132c4e9b10e4a7c93366309bef8d7 to your computer and use it in GitHub Desktop.
const reader = new FileReader()
reader.onload = async (e) => loadPrompt(e.target.result)
reader.readAsArrayBuffer(file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment