Questions tagged [file-system-access-api]

Use this tag for questions about the W3C's File System Access API.

The W3C's File System Access API (currently being incubated), is a proposal for a new Web API that would give access to the user's disk.

This API allows to read or write Directories and Files on the user's disk.
It is currently exposed in Chromium based browsers.

Current specifications
Web.dev article

50 questions
0
votes
2 answers

Why does ShowDirectoryPicker hang?

I try to add folder scanning into my web page. Folder selection works fine and I get prompted if I want to allow the access to selected folder. But then nothing happens. In console I see "1" as the last log entry, so await never returns. Any ideas…
Riho
  • 4,523
  • 3
  • 33
  • 48
0
votes
0 answers

Implement browser NVR

The simplest abstraction of NVR(Network Video Recorder) is like the follow: The user specifies a path (such as: ~/recrods/) to store video records. The NVR creates video files (such as: 1.mp4, 2.mp4) on the path. Now we are going to implement a…
Jim Jin
  • 1,249
  • 1
  • 15
  • 28
0
votes
0 answers

File System API to open folder in network drive

I want to be able to open a folder that is on a network drive from a website, ideally it would be the starting from this location when a users first opens the window. Is it possible to have the shared network drive as the default location when it…
Standage
  • 1,517
  • 7
  • 22
  • 41
0
votes
0 answers

non-deprecated replacement for FileSystemEntry.toURL()

I am planning a project where I will need to be able to access files from the File and Directory Entries API through the browser through URLs with actual file paths (unlike blobs) and the FileSystemEntry.toURL() satisfies that need. However, while…
0
votes
1 answer

How to use a file read via "FileHandler" of "FileAccess API" inside "img" tag

Here's a detailed explanation on what I'm trying to do- I'm reading a HTML file from a directory which has the image tag used but the assets are mapped locally and are not from url. So somehow I'm able to get access to the file. const fileHandle =…
Atul Bhatt
  • 485
  • 1
  • 6
  • 15
0
votes
2 answers

Blazor navigator access

Anybody know how to get the following code to work? It's from: https://web.dev/file-system-access/#accessing-the-origin-private-file-system const root = await navigator.storage.getDirectory(); const fileHandle = await…
Sean
  • 2,531
  • 2
  • 17
  • 17
0
votes
0 answers

FileSystemWritableFileStream.write causes quota error

I'm using File System Access API (https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API) to read and write a file into disk. This is my code; const writable = await cacheFileHandle.createWritable({ keepExistingData: false }); await…
Akshay K Nair
  • 1,107
  • 16
  • 29
0
votes
1 answer

How does VSCode access the filesystem?

Is there a client/server architecture present in VSCode, with a Node server running in the background providing file access? Or do they use the File System Access API?
0
votes
1 answer

Read file from Chrome in Android

I have a Vue.js web app and custom Android App (I have the source code of both). I need that the Vue.js web app is able to read a JSON file produced by the custom Android App. Using the filesystem as the technique of exchange data between the 2…
matteogll
  • 803
  • 8
  • 16
0
votes
1 answer

Check if directory still exists after app reload

I am saving a FileSystemDirectoryHandle to IndexedDB, so that the web application can reuse it the next time it is started. This usually works fine. But when the directory has been removed from disk in the meantime, and the app still tries to work…
Sebastian
  • 1,710
  • 2
  • 16
  • 28
0
votes
0 answers

"Working In Background" cursor while executing WritableStream.close() in chromium

We are developing a web tool to record Videos of the users screen and webcam. Some people recording large videos longer than an hour. By using the File System Access API (in Chrome and Edge on Windows), we want to backup the recording Video to a…
0
votes
1 answer

Access directories which look like files on Mac

I am creating a script for Chrome browser to handle files (using File System Access API). This is totally fine on Windows, but on MAC I have this issue: The files are stored in folders which look like files on MAC. For example folder name is…
0
votes
1 answer

How do you get showDirectoryPicker(); from File System Access Api to not ask for permission even when you store dirHandle in IndexDB

When you call showDirectoryPicker(); you get a directory picker. After you select a directory chrome will ask you for permission to view files in that folder. Example code: let dirHandle = showDirectoryPicker(); The above code will ask for…
dan
  • 2,857
  • 6
  • 34
  • 60
0
votes
1 answer

Suggest Filename when User saves blob via showSaveFilePicker

Not sure if this is silly to ask but couldn't find anything online: Users on my site can save a file to their disk: const saveFile = async blob => { try { const handle = await window.showSaveFilePicker({ types: [ { …
antonwilhelm
  • 5,768
  • 4
  • 19
  • 45
0
votes
1 answer

Read ANSI files in Web file-system-access API

I am trying to get files using file-system-access API and it works good using this code: function Process_Files(files) { [].map.call(files, async function (file, i) { if (isDataFile(file.name)) { let fileText = await…