OneDrive upload blocked errors in Windows usually come from file name restrictions, sync conflicts, or a stuck sync engine, and you can fix most of them by renaming the file, clearing the sync cache, or resetting OneDrive. This guide covers the common causes and step-by-step fixes, from simple file renames to deeper Windows and network checks.
Why OneDrive Blocks Uploads
OneDrive enforces a strict set of file and folder naming rules that are stricter than Windows’ own rules. If a file or folder name contains an invalid character, ends with a period or space, or uses a reserved Windows name like CON, AUX, or PRN, the upload is blocked. OneDrive also has a 400-character path limit (including the file name), so deeply nested folders often trigger errors. Beyond naming, the sync client can get stuck after a large file transfer, a sudden shutdown, or a network drop, leaving a file in a perpetual “blocked” state.
Fix 1: Rename or Move the Problem File
The fastest fix is to identify the offending file and change its name or location. OneDrive usually shows a red circle with a white cross on the file in File Explorer. Right-click the file and select Rename, then remove any of these:
- Characters:
" * : < > ? / \ | - A trailing period or space at the end of the name
- Reserved names: CON, PRN, AUX, NUL, COM1-9, LPT1-9 (with or without an extension)
- Any emoji or special Unicode symbols that OneDrive may not support
If renaming doesn’t help, move the file to a folder closer to the root of your OneDrive folder (e.g., from Documents\Projects\2025\Draft\Final to OneDrive\Final) to shorten the path. After moving, wait a few seconds for the sync to retry.
Fix 2: Clear the OneDrive Sync Cache
Sometimes the sync database gets corrupted, causing uploads to be blocked even after fixing the file name. Clearing the sync cache forces OneDrive to rebuild its local database without deleting your files. Here’s how:
- Right-click the OneDrive cloud icon in the system tray and select Settings (or Pause syncing > Quit OneDrive).
- Press
Win + R, type%localappdata%\Microsoft\OneDrive\, and press Enter. - Delete the
logsandsettingsfolders (they will be recreated). - Open the
cachefolder and delete its contents, but keep the folder itself. - Restart OneDrive from the Start menu. It will rescan your files and re-upload anything that isn’t synced.
This is a safe process, but it can take a while for large libraries because OneDrive will re-index everything. Make sure you have a stable internet connection during the rescan.
Fix 3: Reset OneDrive Completely
If clearing the cache doesn’t work, a full reset often resolves persistent blocks. This unlinks your account and re-establishes the sync connection without deleting any files locally or in the cloud.
- Press
Win + R, type%localappdata%\Microsoft\OneDrive\onedrive.exe /reset, and press Enter. - A command prompt window will flash briefly, and OneDrive will restart automatically. If it doesn’t, launch OneDrive manually.
- You’ll see the setup screen again. Sign in with your Microsoft account and choose your OneDrive folder location (use the default).
- OneDrive will rescan and sync. If you have a huge library, this can take hours, so be patient.
If the reset command doesn’t work, try the full unlink: right-click the tray icon > Settings > Account > Unlink this PC, then sign back in.
Fix 4: Check File Permissions and Attributes
Windows file attributes can also block uploads. OneDrive cannot upload files marked as Hidden or System files. To check, right-click the file > Properties > General tab, and look at the Attributes section. Uncheck Hidden if it’s checked. If the file is read-only, OneDrive can still upload it, but some apps may cause conflicts. To remove the read-only attribute, uncheck it in the same dialog.
Also, ensure your user account has full control over the OneDrive folder. Right-click the OneDrive folder in File Explorer > Properties > Security tab > Edit > select your user and check Full control. This is rarely the issue on a personal PC, but it can happen after a Windows update or if you migrated from another user profile.
Fix 5: Disable Conflicting Software
Antivirus or backup software that locks files can cause OneDrive to think a file is in use and block the upload. If you have a third-party antivirus, add your OneDrive folder to its exclusions list. Similarly, if you use a cloud sync tool like Dropbox or Google Drive, make sure they aren’t set to sync the same folder—this can cause file locks and conflicts.
Another common culprit is the Windows Controlled Folder Access feature (part of Windows Security). It can block OneDrive from writing to protected folders. To check: go to Windows Security > Virus & threat protection > Ransomware protection > Manage ransomware protection > Controlled folder access. If it’s on, click Allow an app through Controlled folder access and add OneDrive.exe (usually located at C:\Users\YourName\AppData\Local\Microsoft\OneDrive\OneDrive.exe).
Fix 6: Network and Proxy Issues
Sometimes the block is not on your PC but in the network path. OneDrive requires a stable connection to its servers, and a VPN or proxy can interfere. Temporarily disable your VPN and try uploading again. If you’re behind a corporate proxy, ensure that onedrive.com and *.onedrive.com are allowed. Also, check your firewall settings—Windows Defender Firewall may block OneDrive if it was recently updated. Go to Windows Security > Firewall & network protection > Allow an app through firewall and make sure OneDrive is checked for both Private and Public networks.
If you’re on a metered connection, Windows may pause OneDrive to save data. Right-click the OneDrive tray icon > Settings > Network and check the Pause syncing settings. Also, in Windows Settings > Network & Internet > Data usage, ensure your connection isn’t set to metered, or allow OneDrive to sync even on metered connections.
Frequently Asked Questions
Why does OneDrive say “The file is blocked” but I can open it?
This usually means the file name or path violates OneDrive’s rules, even if Windows allows it. Check for trailing spaces, periods, or reserved names like CON. Also, check if the file is open in another program—OneDrive won’t upload files that are locked by an app.
Will clearing the sync cache delete my files?
No. Clearing the cache or resetting OneDrive only removes local metadata and temporary files. Your actual files remain on your hard drive and in the cloud. After a reset, OneDrive will re-download or re-upload as needed, but nothing is deleted.
How do I fix a file that is stuck as “Upload blocked” after renaming?
If renaming doesn’t trigger a retry, right-click the file and select Free up space (if it’s a cloud file) or Always keep on this device. This forces OneDrive to re-evaluate the file. If that fails, pause syncing for a few minutes, then resume.
Can I upload files with emojis in the name?
OneDrive supports most Unicode characters, including emojis, but some emojis are actually two code points and can cause issues on older file systems. If you get a block, try removing the emoji and using a plain text name.
What is the maximum path length for OneDrive?
OneDrive supports up to 400 characters for the full path (folder path + file name). If you exceed this, you’ll see an error. Shorten the folder structure or file name to fix it.
Does OneDrive block files larger than a certain size?
OneDrive has a per-file size limit (250 GB for personal accounts, 15 GB for files uploaded via the web), but if you’re well below that and still blocked, it’s likely a naming or lock issue, not a size issue.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Change Google Text-to-Speech Voice on Android
- How to Adjust Volume Levels on a Windows PC
- Reset Chrome Sync to Fix Problems
- Fix Mouse Not Working in Windows 11
- Fix Windows Defender Failed to Initialize Error
- How to Hide or Unhide NFTs on OpenSea Profile