On a publishing page in DEV, when editing HTML field and I upload a document using the Upload button from Ribbon, and select Documents library as the destination list, the uploaded file gets uploaded to the root of the Documents library.

However, when users upload documents in PROD, SharePoint creates subfolder to the root of the Documents library, and upload the files inside that subfolder. Subfolder name is the file name of the publishing page.

Some random publishing pages in Pages library:

enter image description here

Some random subfolders that have been generated in Documents library:

enter image description here

Why is SharePoint creating this subfolder, and why it only occurs on some users? I have tried uploading with different browsers, with different users (having different permissions), but have been unable to reproduce in DEV. I haven't been able to find any reference to this functionality in SharePoint, so any pointers and thoughts are appreciated.

  • That's rare.I have not seen like this.No Event Receiver attached I guess?
    – Amit Kotha
    Commented Jul 22, 2015 at 12:19
  • No event receivers, pure SharePoint file upload via Ribbon Upload button when modifying HTML field.
    – Jussi Palo
    Commented Jul 24, 2015 at 6:42

1 Answer 1


When a document library is defined as "Site Assets Library" in library Advanced Settings, then SharePoint will upload items into subfolders in the designated Site Assets library.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.