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

269
Visualizações
How to write and read files in browser JS like vscode.dev

I want to read & write files with the user permission. Like here And Here

I tried FileHandlerApi and a lot of things.

Just i want to make something like that

<!DOCTYPE html>
<html>
  <head>
    <title>File permission web</title>
    <script>
      const reqPerm = () => {
        // Code to request permission ( Write and Read )
      };

      const createFile = (fileName) => {
        // Code to create File
      };

      const deleteFile = (path) => {
        // Code to delete file
      };

      const editFile = (path, content) => {
        // Code to edit file
      };

      const viewFile = (path) => {
        // Code to view file
      };
    </script>
  </head>
  <body>
    <center>
      <h1>File permission</h1>
      </br>
      <button onclick="reqPerm()">Get permission</button>
      </br>
      <button onclick="createFile('hello.txt')">Create file</button>
      </br>
      <button onclick="deleteFile('/home/runner/renne/hello.txt')">Delete file</button>
      </br>
      <button onclick="editFile('/home/runner/renne/hello.txt', 'hellomg')">Edit File</button>
      </br>
      <button onclick="viewFile('/home/runner/renne/hello.txt')">View file</button>
    </center>
  </body>
</html>

The problem is that idk how to request permission so is there any api or any way? I think is possible because vscode.dev can make it on chromebook, windows, linux, etc..

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