Upload a small, locally stored test file with a short name directly to the top level of OneDrive on the web; the result distinguishes a file/path or folder-permission problem from a Windows OneDrive client problem.
1. Isolate the failing component
- Open OneDrive.com and sign in with the same account used by the Windows OneDrive app.
- Go to My files, rather than the original destination folder.
- Create a small file such as
test.txt in Documents on the PC.
- In OneDrive, select Upload > Files, then upload
test.txt.
If this succeeds: the account can upload, so check the original file and destination:
- Open the original file locally before uploading. If it is on a network share, USB drive, or other removable location, copy it to Documents first. OneDrive reports access errors when the source is unavailable, moved, renamed, deleted, or inaccessible.
- Browse into the intended destination before selecting Upload. For a shared work or school folder, use a folder where the account has edit permission.
- Shorten the file name and folder hierarchy. On the OneDrive website, the complete path—including the file name—must contain fewer than 442 characters.
- Remove restricted characters and trailing spaces or periods from the name. Reserved names such as
CON, AUX, NUL, PRN, COM1, and LPT1 also cannot be used.
- Confirm the file is not empty: the website cannot upload a 0-byte file.
- Check available storage because uploads, edits, and synchronization stop when Microsoft storage is exceeded. ^1^
If the test fails on the web too: try a different top-level folder. If that works, the original destination does not grant edit permission. If no folder works, check the account’s available storage and whether the correct account is signed in. For a work or school account, ask the folder owner or Microsoft 365 administrator to verify access; reinstalling the Windows client will not repair server-side folder permissions.
2. Repair the Windows client only if web upload works
If the web test succeeds but copying the same file into the OneDrive folder in File Explorer fails, reset the sync client:
- Press Windows+R.
- Enter
wsreset.exe, select OK, and close Microsoft Store after it opens.
- Press Windows+R again.
- Run:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
- If Windows cannot find it, try:
C:\Program Files\Microsoft OneDrive\onedrive.exe /reset
- If necessary, try:
C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /reset
- Open Start, search for OneDrive, and launch the OneDrive desktop app.
- Wait for synchronization to complete, then copy the test file into the OneDrive folder again.
Resetting does not delete cloud data, but it disconnects sync connections, performs a full resynchronization, and may require reselecting folders previously configured for selective sync. ^2^
If the reset completes but the error remains, uninstall and reinstall OneDrive. Cloud files remain accessible through OneDrive.com when the desktop client is removed. ^1^
References
- Fix problems uploading files on the OneDrive website | Microsoft Support
- Reset OneDrive | Microsoft Support