File system paths and directories
Sites cannot list your folders or see where files live.
In one line
Can't see your folders or where your files are stored
Sites cannot list your folders or see where files live.
The File System Access API (Chromium) returns handles after a picker; the real path is withheld (fakepath). OPFS is a private sandbox. Only the file name, size and last modified are readable.
What it can and can't do
What the user does: You tap Choose file or Open file and pick one in the file picker
It can
- Open the file you pick, once or for the visit
- See its name, size, and last changed date
- Save back to a file you picked, after you agree in Chrome or Edge
- Use a private storage area just for the site
It cannot
- See the folder path; browsers hide it
- List files you did not pick
- Open a file or folder without a picker
- See your OS folders or home directory
How it differs between platforms: Chrome and Edge let you pick files for later saving. Safari and Firefox only give one time picks.
Browser support
| Browser | Status | First version | Note |
|---|---|---|---|
| Chrome | Not supported | Not available | None |
| Edge | Not supported | Not available | None |
| Firefox | Not supported | Not available | None |
| Safari | Not supported | Not available | None |
| Safari on iPhone | Not supported | Not available | None |
| Chrome on Android | Not supported | Not available | None |
| Samsung Internet | Not supported | Not available | None |
How a site asks for it
| API | showOpenFilePicker (prompt, gesture) |
| How access is granted | not-exposed |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | read fresh on every page load; nothing stored |
| How to take it back | not applicable |
| Inside an iframe | Readable from cross-origin iframes too (same values) |
Typical flow
- Page script reads the value
- No prompt is shown
Data you get
Shape: none
How often: static per session
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
proxy: File.name, size, lastModified | string | None | readable after user pick | Not listed |
proxy: input[type=file] value | string | None | shows C:\fakepath\name only | Not listed |
proxy: OPFS | string | None | private origin sandbox, no host paths | Not listed |
Technical limits
- Directory layout reveals identity
The story
What it is
Sites cannot see your folders or where your files live. They only get the file you choose.
For you
When you pick a file to upload, the site gets the file, not the folder path. The path shows as something like fakepath. Chrome also lets a site save to a file you chose after you approve it.
For makers
Folder paths reveal a person's name and how they organise their life. Web apps need the file itself, not the place. Pickers give that, and the browser keeps the real path hidden.
Where you see it
| Type | Example | Apps |
|---|---|---|
| creative | A browser photo editor opens the picture you chose and saves back after you approve, without ever seeing your folders. | Photopea |
| productivity | A web code editor opens a project folder you pick and cannot browse the rest of the disk. | VS Code for the Web |
| games | A browser game lets you load a save file you choose and cannot scan for others. | None named |
| shopping | A print shop site uploads the one picture you picked and cannot see other photos. | None named |
| security | A malicious page wanted to search for files like wallet or password files, which the web blocks. | None named |
| enterprise | A company portal accepts a spreadsheet you pick and cannot explore your drives. | None named |
| music | A browser music tool loads your chosen samples and cannot browse your library. | None named |
Risks
- Granted folders can be broad
- File names may reveal details
What the platform says
- Google: File System Access API. Chrome describes a way for web apps to open and save files you pick, as if they were desktop apps.
Good uses and abuse
Legitimate uses
- None: the browser deliberately withholds it
Known abuse
- Sites attempt proxies to recover it
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 4 of 5 | How revealing the data is |
| Utility | 2 of 5 | How useful it is to honest apps |
| Friction | 3 of 5 | How much the user has to do |
| Fingerprint bits | 0 | Rough identifying entropy, when known |
Related capabilities
Related
- OS username and home folder. Can't see your computer login name or home folder
Sources
How well checked: Based on official documentation.