Cannot upload file, this file contains system files error on Redirected My Documents folder

Red2100 40 Reputation points
2023-11-22T11:43:41.9566667+00:00

Hi,

Windows 10 and 11 users are receiving "cannot upload file, this file contains system files" error when attempting to upload Excel CSV files to a web-based application.

Files are located in their My Documents folder, which is being redirected to a 2016 Windows server using an on-prem AD Group policy.

The files are accessible and can be opened in Excel. When we move the same files outside of the redirected folder, to let's say, C:\Files, the upload works just fine. Also external users outside of this site can upload using the same browser version.

This error is only happening on files in the redirected user folders in this organization.

Any help is appreciated!

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,075 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,726 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,932 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,361 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ian Xue-MSFT 41,691 Reputation points Microsoft External Staff
    2023-11-23T02:48:14.51+00:00

    Hi,

    You can manually clear the system attribute of the file using attrib.exe

    attrib.exe -s C:\File\Path

    https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/attrib

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Lasse Skytte Knudsen 0 Reputation points
    2023-11-24T11:15:45.17+00:00

    I get the same error - I cannot run around and reset attributes on users files, but instead need to find a permanent fix for this (security/GPO etc).

    If I copy the same file to another network drive, I do NOT get the error message, but if the file is located on a Redirect folder, I receive the error msg.


  2. Red2100 40 Reputation points
    2023-11-24T14:05:58.25+00:00

    I am still curious why this attribute was suddenly changed on the redirected My Documents folder?

    0 comments No comments

  3. Carlos Mejia 0 Reputation points
    2025-03-17T15:18:52.94+00:00

    I was getting the same error trying to save a simple PDF document. I found the problem was with the folder name i was trying to save to. It was to long. The person had created the folder with about 20 spaces in between two words. As soon as I removed the spaces it let me save to the folder with no error. My guess is Microsoft file name length restrictions cause an issue that makes it believe there are system files there somehow.

    I suggest you try checking the folder name.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.