Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

136
Visualizações
HTML and Javascript: Open file explorer to allow users to select a directory instead of just files, without the webkitdirectory attribute?

Is it possible to open the operating system file explorer/browser to allow users to select a directory instead of just files, without using the webkitdirectory attribute of an html input tag? It appears that the Dropbox website does this for folder uploads, but perhaps they add the webkitdirectory attribute programatically. (I'd rather not use the webkitdirectory attribute because it is non-standard, not recommended for production, and my Svelte app is complaining about it).

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

As noted by @Mark Hanna, I used the File System Access API instead of the webKitdirectory input attribute. In TypeScript, the methods of the API were not recognized, so installed the @types/wicg-file-system-access and in the .tsconfig added

"compilerOptions": {
    "types": ["@types/wicg-file-system-access"]
  }
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda