Please enable JavaScript
ContentDocumentLink record should be created with LinkedEntityId as the Library Id to upload a File to a specific Library Folder using Salesforce Apex. Blog Post: https://www.infallibletechie.com/2023/11/upload-a-file-to-a-specific-library-folder-using-salesforce-apex.html