Fix SharePoint Online Cannot Link to Local Network Files
Question details
Users are unable to create links in SharePoint Online that point directly to local drive paths or shared network locations (such as UNC paths).

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Attempting to share or link local files and folders within a SharePoint Online environment.
- Observed behavior
- SharePoint's link feature rejects local drive paths (like H:\Group\Folder) or UNC network paths, only accepting standard web URLs, email addresses, or internal SharePoint locations.
Ensure you have edit permissions for your SharePoint document library and that the local network files you want to share are fully accessible from your current device.
Upload Local Files to a SharePoint Document Library
Since SharePoint Online cannot link directly to local network paths, the best solution is to migrate the local files to a SharePoint Document Library and share them via standard web URLs.
SharePoint Online operates strictly in the cloud and requires standard web protocols to form links. It intentionally blocks direct links to local or UNC network drives for security, cross-device compatibility, and browser-level restrictions.
Open your local file explorer and find the network folder or drive (e.g., H:\Group\Folder) containing the files you want to share.
Navigate to your SharePoint Online site in a web browser and open the desired Document Library where the files should reside.
Click the 'Upload' button in the SharePoint ribbon, select 'Files' or 'Folder', and choose your local network files. Alternatively, you can drag and drop them directly into the library.
Once the upload is complete, select the file or folder in SharePoint, click 'Share' or 'Copy link', and distribute this newly generated web URL to your team.

Collaborate Seamlessly with WPS Office
Tired of cloud linking restrictions and complex network setups? WPS Office offers a powerful, lightweight productivity suite with built-in cloud storage (WPS Drive). It provides high compatibility with Microsoft Office formats, making file sharing and team collaboration incredibly easy without strict path linking limitations.
- 1. Download and Install: Get WPS Office for free from the official website and complete the quick installation.
- 2. Upload to WPS Drive: Open WPS Office, navigate to the built-in WPS Drive, and upload your local documents to the cloud.
- 3. Share with Your Team: Right-click the uploaded file in WPS Drive to generate a secure, shareable web link that works flawlessly across any device or browser.

Frequently Asked Questions
Why does SharePoint Online reject my local drive path?
SharePoint Online is a cloud-based platform that relies on standard internet protocols (HTTP/HTTPS). It does not support local file paths (like C:\ or H:\) or UNC network paths because modern web browsers block direct access to local resources for security reasons.
Is there any way to force a link to a local network drive in SharePoint?
Direct linking using the 'Form a link' feature is fundamentally not supported in SharePoint Online. The standard and most reliable workaround is to upload the actual contents to a SharePoint Document Library and share the resulting cloud URL.
Can I sync my SharePoint library to my local computer instead?
Yes, you can use the OneDrive sync client to synchronize your SharePoint Document Library to your local file explorer. This allows you to work with cloud files seamlessly as if they were local folders, bridging the gap between cloud and local workflows.
What formats does the 'Form a link' feature in SharePoint accept?
The link feature strictly requires a supported website URL (starting with http:// or https://), a valid email address (starting with mailto:), or an internal SharePoint location.




