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

265
Views
TypeError: FileSystemFileHandle.queryPermission no es una función

Tengo una función muy simple que abre un archivo como se muestra en el ejemplo en mozilla

 // fileHandle is a FileSystemFileHandle // withWrite is a boolean set to true if write async function verifyPermission(fileHandle, withWrite) { const opts = {}; if (withWrite) { opts.mode = 'readwrite'; } // Check if we already have permission, if so, return true. if (await fileHandle.queryPermission(opts) === 'granted') { return true; } // Request permission to the file, if the user grants permission, return true. if (await fileHandle.requestPermission(opts) === 'granted') { return true; } // The user did not grant permission, return false. return false; }

pero sigo recibiendo un error que dice que file.queryPermission no es una función. Aquí está mi código:

 let file = await window.showOpenFilePicker(); console.log(file.queryPermission({ mode: 'readwrite' }));

También intenté poner console.log en un .then pero obtuve el mismo resultado.

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

0

Si usa Firefox o Safari o versiones anteriores de otros navegadores, de acuerdo con MDN y Can I Use queryPermission no es compatible con estos navegadores. Tal vez debería verificar el soporte de su navegador para esta característica.

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!