Learn what websites can read after you select a file, drop a folder or grant access, and why a local preview does not guarantee your files stay private.
Key Takeaways
- An ordinary webpage cannot freely browse your computer. Selecting or dropping files gives it access to the items you share.
- A selected file can be read by page scripts before you press a separate Upload button. A thumbnail is not proof that nothing was sent.
- Folder access can expose much more than one document. Reading, writing and browser-owned storage are different capabilities.
- Choose the smallest set of files needed, review grants in your browser and remember that revocation cannot retrieve data already copied.
Can websites read local files just because you visit them? Under normal browser security rules, a page does not get unrestricted access to your disk. Choosing a file lets the page read it, so decide whether you trust the site before selecting it. The useful question is which files you shared, with which site, and what access you allowed.
What each file-sharing action means
| Action | What you should assume you are sharing | Practical boundary |
|---|---|---|
| Select a file in a picker | The selected file's contents and file information | Not the other files beside it |
| Drop a file onto a page | The dropped file, when the page handles the drop | Not a harmless preview-only gesture |
| Select a folder | Its contents within the granted scope | Potentially many documents and subfolders |
| Allow a web editor to save changes | Write access through its supported workflow | Different from merely reading a selected file |
| Use browser-owned origin-private storage | Data kept in the site's browser storage area | Not permission to browse your Documents folder |
These boundaries describe ordinary webpages using browser APIs. Installed software, privileged extensions and browser security vulnerabilities require a separate assessment. See our guide to browser extension privacy risks before treating every program that runs in a browser as having the same limits.
Selecting or dragging a file is already access
MDN's guide to using files from web applications explains that file inputs and drag-and-drop provide selected files to page scripts. Those scripts can read their contents and inspect details such as the filename, size and reported type. The ordinary file object's name does not include its full local path.
A filename can itself be sensitive: a client's name or a project codename may reveal information even when the document looks unremarkable. The contents may contain additional identifying details. Treat selection as sharing the document with the page's code, rather than as merely pointing at an icon.
Consider an online résumé checker. You choose a résumé and immediately see its first page. That could be a local preview, a server-rendered preview, or a mixture. The visual result alone cannot tell you which happened. A second button labelled Upload is an interface choice; it is not a browser-enforced promise that scripts have waited to read or send the selected file.
For sensitive material, decide whether you trust the service before choosing the file. If you only need to test a feature, use a harmless sample that contains no personal information.
Folder grants and write access need a closer look
The MDN File System API overview describes file and directory handles returned after user selection, and the separate origin-private file system. A directory grant can let an application work with children of the selected directory, subject to permissions. That is a wider scope than handing over a single image.
If an editor asks you to open a project folder, check what else is inside it. A folder containing one design may also contain invoices, drafts or unrelated client work. Prefer a dedicated working folder containing only what the application needs. Do not choose your entire home directory for convenience.
Reading a file does not by itself mean the page may overwrite the original. Saving back through file-system access requires the relevant write permission; exporting a downloaded copy is another workflow. Read the browser's request closely, especially when it mentions editing or saving changes.
Browser support also differs by feature. Traditional file inputs are widely available, while picker methods such as showOpenFilePicker() and showDirectoryPicker() are not supported uniformly across browsers and devices. A site falling back to an upload field has not necessarily broken. File System Access features also require a secure context, normally HTTPS; HTTPS protects the connection but does not establish that the service handles your documents responsibly.
Browser storage is not your personal folders
Origin-private file storage, or OPFS, is a browser-managed area associated with a site's origin. A web application can use it for its own working data without asking you to choose a personal folder. Its existence is not evidence that the site can enumerate files elsewhere on your computer.
For the related question of how browser state is separated between sites, see storage partitioning explained. Keep that question separate from whether you explicitly shared a local folder.
Similarly, a permission state is not a list of your documents. Our Permissions API fingerprinting guide discusses observable permission states; querying a state does not by itself hand a page arbitrary file contents.
How to limit access before and after using a site
- Review the scope first. Choose individual files where possible and inspect folders before granting access. Work on a copy if you do not want an editor changing the original.
- Review the site's settings. Use the browser's site controls or settings search to look for file-related grants, where available. Labels and persistence differ by browser; do not assume closing a tab always revokes a saved grant.
- Revoke access you no longer need. Clear the relevant grants and, if appropriate, the site's stored data. A confirmation message from the website alone is not an independent check of browser settings.
- Handle uploaded copies separately. Revoking local access cannot undo a completed upload. If you shared the wrong document, use the service's deletion controls or contact its operator about that copy.
A standard file input does not usually create a persistent file-system permission you can later revoke in site settings. Once the page has the selected file, clearing the input does not guarantee its scripts have discarded every reference or copy. Browser permission controls are most relevant to file-system handles and saved grants.
For a separate look at browser attributes a page can observe without selecting a document, run the BrowserInsight browser fingerprint test. BrowserInsight does not scan your local files or audit file-access permissions. This article explains the boundary; a fingerprint result cannot certify that a particular upload service keeps documents local.
Frequently asked questions
Can a site read other files in the same folder?
Selecting one file does not normally grant its siblings. Selecting a directory is a broader decision, so check the scope shown by the browser.
Does a local preview mean the file was never uploaded?
No. Rendering a preview and transmitting a file are separate actions that a page can combine. A visible thumbnail cannot verify a service's privacy claim.
Does removing permission delete the site's copy?
No. It restricts future access through that grant; it does not recall bytes already read, uploaded or otherwise copied.


