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

124
Views
browser.downloads.download - images disappearing after download

So I was tinkering with a firefox extension and came across something I can't explain. This extension downloads images from a certain site when a browser action (button) is clicked. Can confirm that the rest of the extension works perfectly and the code below has proper access to the response object.

const downloading = browser.downloads.download({
    filename:response.fileName + '.jpg',
    url:response.src,
    headers:[{name:"Content-Type", value:"image/jpeg"}],
    saveAs:true,
    conflictAction:'uniquify'
});
        
const onStart = (id) => {console.log('started: '+id)};
const onError = (error) => {console.log(error)};
        
downloading.then(onStart, onError);

So the saveAs dialog pops up (filename with file extension populated), I click save, and then it downloads. As soon as the file finishes downloading it disappears from the folder it was saved in. I have no idea how this is happening.

Is this something wrong with my code, Firefox, or maybe a OS security action? Any help would be greatly appreciated.

Extra Information:
Firefox - 95.0.2 (64-bit)
macOS - 11.4 (20F71)

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!