Skip to Content
Platform.Ontology

File system paths and directories

Sites cannot list your folders or see where files live.

Blocked for appsDevice detailsSoftwareWeb browsersWhen the page loadsWhile you use it

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

BrowserStatusFirst versionNote
ChromeNot supportedNot availableNone
EdgeNot supportedNot availableNone
FirefoxNot supportedNot availableNone
SafariNot supportedNot availableNone
Safari on iPhoneNot supportedNot availableNone
Chrome on AndroidNot supportedNot availableNone
Samsung InternetNot supportedNot availableNone

How a site asks for it

APIshowOpenFilePicker (prompt, gesture)
How access is grantednot-exposed
What the user seesNone
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsread fresh on every page load; nothing stored
How to take it backnot applicable
Inside an iframeReadable from cross-origin iframes too (same values)

Typical flow

  1. Page script reads the value
  2. No prompt is shown

Data you get

Shape: none
How often: static per session

FieldTypeUnitRangePrecision
proxy: File.name, size, lastModifiedstringNonereadable after user pickNot listed
proxy: input[type=file] valuestringNoneshows C:\fakepath\name onlyNot listed
proxy: OPFSstringNoneprivate origin sandbox, no host pathsNot 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

TypeExampleApps
creativeA browser photo editor opens the picture you chose and saves back after you approve, without ever seeing your folders.Photopea
productivityA web code editor opens a project folder you pick and cannot browse the rest of the disk.VS Code for the Web
gamesA browser game lets you load a save file you choose and cannot scan for others.None named
shoppingA print shop site uploads the one picture you picked and cannot see other photos.None named
securityA malicious page wanted to search for files like wallet or password files, which the web blocks.None named
enterpriseA company portal accepts a spreadsheet you pick and cannot explore your drives.None named
musicA 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

Good uses and abuse

Legitimate uses

  • None: the browser deliberately withholds it

Known abuse

  • Sites attempt proxies to recover it

Scores

ScoreValueMeaning
Sensitivity4 of 5How revealing the data is
Utility2 of 5How useful it is to honest apps
Friction3 of 5How much the user has to do
Fingerprint bits0Rough identifying entropy, when known

Sources

How well checked: Based on official documentation.

On this page