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

294
Views
how to convert a file object to a url

I have a javascript file object like so:

enter image description here

and I would like to turn it into a url so that the file can be accessed through the url. How would I go about generating a url for this file through javascript?

The javascript for the file object is something like this:

const file = new File(["blob data"], "foo.txt", {
  type: "image/png",

});

I would like to pass this file variable somewhere and have a url generated for it. Is that possible?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This one was really one google search away my friend, unless I misunderstood your needs?

objectURL = URL.createObjectURL(object);

createObjectURL on Mozilla

about 4 years ago · Juan Pablo Isaza Report
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!