On this page
A file:// URL points to a file on a local or mounted file system, not to a document hosted on the public web. If you send someone a file URL from your computer, their browser usually looks for that path on their computer—which is why the link often fails. This guide explains what the URL means, how paths vary by operating system, and safer ways to share a document.
Key Takeaways
- A
file://URL identifies a location on a device or accessible mounted file system; it is not a general download link. - A path that exists on your computer may not exist, or may not be accessible, on someone else’s.
- Operating systems use different path conventions, and browser behavior can vary.
- For sharing, use a hosted link with appropriate permissions or send the file as an attachment.
- Check file paths before sharing: they can disclose usernames or private folder names.
What a file URL points to
A web address such as https://example.com/report.pdf identifies content available from a web server. A file:// URL instead refers to a file in a local or mounted file system. For example:
file:///home/lee/Documents/report.pdf
That path may identify a document on Lee’s Linux computer. Sending the URL does not upload the document or make it available to other people. When a recipient opens it, their device attempts to find the specified location in an environment they can access. If the file is not there, the link cannot open it.
A shared network drive can be an exception: a file URL may point to a location reachable by multiple devices. But recipients still need the right network connection, a matching mount or share, and permission to read the file. A path that works for one person is not automatically a working shared link.
Advertisement
How file paths differ by operating system
The same document can have different paths on different systems. These are illustrative examples, not universal locations:
| System | Example file URL |
|---|---|
| Windows | file:///C:/Users/Ada/Documents/report.pdf |
| macOS | file:///Users/ada/Documents/report.pdf |
| Linux | file:///home/ada/Documents/report.pdf |
Windows paths commonly use a drive letter, while macOS and Linux paths typically start from a directory such as /Users or /home. Removable drives, custom folders, mounted storage, and account names can all change the actual path.
A space in a URL may appear encoded as %20, as in file:///Users/ada/School%20Work/report.pdf. Browsers and other applications do not necessarily display or handle file URLs identically, so copying a path and changing its slashes by hand is not a dependable way to create a shareable link.
Some organizations use network shares, and a URL may refer to a server or share rather than a file on the sender’s device. That still does not make it publicly accessible: recipients need a compatible setup and authorized access. The exact behavior depends on the operating system, browser, and network configuration.
Why a file URL does not work on another computer
A file URL describes a location, not the file’s contents. A recipient may get an error because:
- The file exists only on the sender’s device.
- The recipient has a different operating system, drive layout, username, or folder structure.
- The path points to a removable drive that is disconnected.
- A network share is unavailable, not mounted, or requires different credentials.
- The recipient’s account does not have permission to read the file.
- The application handling the link restricts access to local files.
Even if both people use the same operating system, their local paths are not necessarily the same. Changing C: to another drive letter, for example, does not transfer or locate the file.
Safer ways to share a document
Choose a method that gives the recipient access to the actual file:
- Share a hosted link. Upload the document to a service your recipients can use, then create a link with the right access settings. Use named-person access for private material; use a broader link only if the intended audience should have it.
- Send an attachment. This can work for a small file when your email or messaging service allows the size. Confirm that the recipient can open the file format.
- Use an approved shared drive. Put the document in a shared location and check that recipients are authorized and can reach it from their devices.
Before sending a hosted link, check its access settings from the recipient’s perspective. A link that requires your account to sign in may not work for someone outside your organization. Conversely, a link available to anyone who has it may expose the file more widely than intended.
Advertisement
Protect information in file paths
Local paths can contain details such as a username, organization, project name, or folder structure. For example, file:///Users/jordan/Client-Name/Legal/draft.pdf reveals more than just the document’s name. A path can be visible in a message, screenshot, shared document, or copied link even when the file itself is not accessible to the recipient.
Before sharing, check the link or screenshot for personal or confidential path information. If the document is sensitive, use an approved sharing method and set access deliberately. Do not assume that a path is private simply because it does not open for other people.
Common Mistakes
- Sending a local path as if it were a web link. A
file://URL does not host or transfer the file. - Assuming matching devices mean matching paths. Different accounts, drive letters, and folder choices can produce different locations.
- Treating a network share as public. Shared storage still depends on network access and permissions.
- Making a hosted link public just to fix access. Choose the narrowest permission that lets the intended recipients open the file.
- Overlooking path privacy. Usernames and folder names in a URL may reveal information even if the file cannot be opened.
Best Practices
- Use
https://links from a trusted hosting or sharing service when recipients need remote access. - Set permissions for the intended people, then verify that the link works for an appropriately authorized recipient.
- For a network share, provide the approved share location and any necessary access instructions instead of assuming a local path will work everywhere.
- Check filenames, shared-link settings, and visible paths for sensitive information before sending.
- Keep a local
file://URL for your own device or a documented shared environment—not as a substitute for a downloadable or hosted link.
Conclusion
A file:// URL points to a file location, not to a copy of the file on the internet. Because another person’s computer usually has a different file system and permissions, the link often fails there. Share the document through an appropriately permissioned hosted link, an approved shared drive, or an attachment instead.
What would your domain sell for?
A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.