Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

196
Views
How to copy the media file to web browser clipboard from finder or file explorer in javascript

I need to copy files from finder and access the copied image / audio / video in the browser clipboard (chrome / firefox / safari).

I've tried to access using the clipboard API. As per official docs https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/read it says partially supported.

const clipboardItems = await navigator.clipboard.read();
console.log(clipboardItems);
const blobOutput = await clipboardItems[0];
const copiedMedia = window.URL.createObjectURL(blobOutput);
console.log('Media pasted ', copiedMedia);

I have tried with onPaste event and got the copied files https://codesandbox.io/s/copy-paste-upload-poc-klqld

Is there any other way to access those files in browser (chrome / firefox / safari) clipboard ?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!