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

162
Views
Chrome y Firefox en iOS no descargarán el archivo JS

Tener un momento muy frustrante para que Chrome y Firefox en iOS descarguen un archivo de mi servidor usando JS.

Funciona en Safari iOS y Android Chrome.

Intenté usar encabezados de disposición de contenido y atributos de descarga, pero fue en vano.

 function downloadVideo(url){ new jsFileDownloader({ headers: [{ name: 'Content-Disposition', value: 'attachment; filename="video.mp4"', name: 'Content-Type', value: 'video/mp4' }], url: '/download?url=' + url, filename: 'file.mp4', withCredentials: false, forceDesktopMode: true, contentType: 'video/mp4', contentTypeDetermination: 'header' } ) data.map((link, index) =>{ links.innerHTML += ` <button onclick=downloadVideo("${link}") target="_blank" href="${link}"download=${index+1}.mp4>Download #${index+1}</button> ` })
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!