SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,227 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
How can I upload a file to Subfolder in Document Library using JSOM...
At some pointer , i tried..fileCreateInfo.set_url but not working...
Any idea/suggesiton ..please
Thanks & BR
Hi @M.A. Farooqui ,
You could upload file to sub folder like this:
createInfo.set_url("https://yourSiteCollection/Documents/folder1/subFolder1/" + fileName);
Reference: https://sharepoint.stackexchange.com/questions/213789/uploading-file-to-document-library-using-jsom
Thanks Michael,
I think I was missing slash (/) after folder name , now it worked...