I want to upload the Jquery and supported files in to the Site Asset library by SharePoint Hosted Apps,

I have create a SharePoint Hosted App, added the files in the Modules

 <Module Name="ZoneTabsFiles" Url="SiteAssets">
    <File Path="ZoneTabsFiles\jquery-1.11.2.min.js" Url="jquery-1.11.2.min.js" ReplaceContent="TRUE" />
    <File Path="ZoneTabsFiles\jquery-ui.css" Url="jquery-ui.css" ReplaceContent="TRUE" />
    <File Path="ZoneTabsFiles\jquery-ui.min.js" Url="jquery-ui.min.js" ReplaceContent="TRUE" />
    <File Path="ZoneTabsFiles\ZoneTabs.js" Url="ZoneTabs.js" ReplaceContent="TRUE" />


The Apps is successfully getting activated but the files are not visible.

Similarly I want to upload the .webpart file to web part catalog.

  • Have you tried adding the Type="GhostableInLibrary" attribute to each element file in your module? – Simba Murombedzi May 16 '18 at 13:22

You app will provision these files to your App Web and not your Host Web. What you need is to upload your files through JS.

Here is a good write up: http://www.sharepointnutsandbolts.com/2013/05/sp2013-host-web-apps-provisioning-files.html

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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