Forum Discussion
Modern teamsite - documents being uploaded not being assigned default content type
It doesn't work like that. Setting the Default Content type for a library simply means that when clicking the New menu option in the library you will create a document using that content type - without needing to choose it from the dropdown (you might have defined multiple content types for the library. Also this applies to a classic library where you choose New from the ribbon, in a modern library clicking New simply activates the dropdown)
Uploading a document will not assign your default content type, it's there for file creation only.
- Oct 06, 2019
Ian Moran I beg to differ. Uploading documents to a document library will apply the default content type to the uploaded documents. The default content type is NOT just for the GUI New button.
- Damien FloodApr 17, 2018Iron Contributor
Ian Moran Thanks for the clarification. So apart from scripting is there anyway to assign a default content type to a library when files and uploaded/copied? Cheers
- Ian MoranApr 17, 2018Iron Contributor
Not as far as I know. You *might* be able to do it with a Flow but it's been a while since I looked at Flow capabilities.
- Damien FloodApr 17, 2018Iron Contributor
Thanks all.
So when uploading/copying to a library with multiple content types does SP assign a CT at random each time? or is there some logic. Cheers
- Paul de JongApr 17, 2018Iron Contributor
AFAIK, this is not possible OOTB .
An alternative way to upload items with a specific Content Type is to use 3rd party tools. They allow selection of Content Types, assigning default metadata values, retain original modification date of documents, ...Paul | SLIM Applications