How to Upload the files into the SiteAssets Library by SharePoint Hosted App Model

I want to upload the Jquery and supported files in to the Site Assest library by SharePoint Hosted Apps,
I have created 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" />
</Module>
The Apps is successfully getting activated but the files are not visible,
Similarly I want to upload the .webpart file to webpart catalogs.
<Module Name="ZoneTabsWebpart" List="113" Url="_catalogs/wp" Path="lists\wplib" RootWebOnly="TRUE">
<File Url="ZoneTabs.webpart" ReplaceContent="TRUE" />
</Module>
The Functionality I can achieve Provider Hosted app, but Can it be done by SharePoint Hosted apps,
Currently the app has the permission of Full Control on Site and Web 
Thanks in advance

Hello Ashok,
you can use JSOM to provision the webpart files in SharePoint hosted app.
Please see the below article for more details.
http://www.sharepointnutsandbolts.com/2013/05/sp2013-host-web-apps-provisioning-files.html
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

Similar Messages

  • How to upload XML file into the internal table in Webdynpro  ABAP ?

    Hi Friends,
    I am not able to upload the XML file into ABAP,can you please help me in solving this issue with the help of source code.
    Regards
    Dinesh

    Hi Dinesh,
    Try go through this program which I had developed earlier. It takes as input an XML file and then breaks it down into name-value pairs of an intrnal table. You need to pass an XML file as input to this program. (I had hard coded the path for my XML file in it. You need to replace it with 1 of your own or you can just delete it and use the browse button to selet the file on your PC)
    Regards,
    Uday
    REPORT  ZUDAY_XML no standard page heading.
    " Internal table to store the XML file in binary mode
    data: begin of it_xml occurs 1,
            c(255) type x,
          end of it_xml,
    " Name-value pairs table rturned by FM SMUM_XML_PARSE
          it_SMUM_XMLTB type SMUM_XMLTB occurs 0 with header line,
    " Table returned by FM SMUM_XML_PARSE for error handling
          it_bapiret2 type bapiret2 occurs 0 with header line.
    " XSTRING variable to be used by FM SCMS_BINARY_TO_XSTRING to hold the XML file in XSTRING format
    data: I_xstring type xstring, 
    " String variable to hold XML file path to pass to GUI_UPLOAD
          I_file_path type string,
    " Variable to store the size of the uploaded binary XML file
          I_LENGTH TYPE I VALUE 0.
    parameters: P_path type IBIPPARMS-PATH default 'C:\Documents and Settings\c5104398\Desktop\flights.xml'.
    " Get the XML file path from the user
    at selection-screen on value-request for P_path.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          FILE_NAME = P_PATH.

  • How do upload a file to the application server into a directory?

    hi to all,
    i want to upload file into the database..i need upload the file into the application server and save it to a directory..is there any way?where i can read about this?any information?
    ashwiny

    Hello,
    First, we need to determine the terms we are using, in order to avoid confusion. We (including the documentation) are using "upload" to describe storing the file on the server, and "download" to pull it from the server into local machine.
    You can use the "File Browse" item to upload any file you need from your local machine and into a database table. The default APEX configuration (in the dads.conf file) stored the uploaded file in a table called wwv_flow_file_objects$. In your application, you can access this table using a view called APEX_APPLICATION_FILES.
    After you uploaded a file, any user can access it, using the download procedure described in the reference I gave you. The download procedure gives you an option to store the download file anywhere you need, using the "Open/Save" dialog box.
    I believe this is covering everything you need. If you still having problems, please consider posting the relevant application pages on apex.oracle.com. It will be easier to understand and help you.
    Regards,
    Arie.

  • HT2518 How do I transfer music from an external hard drive to my itunes on my mac? I have put the files into the itunes media, but they are not showing up in iTunes!

    How do I transfer music from an external hard drive to my itunes on my mac? I have put the files into the itunes media, but they are not showing up in iTunes!

    Hi, did you try iTunes>File>Import?

  • TS2972 How do i get files into the library form a Windows host computer

    How do I get files into the sharing library with a Windows host Computer? Other than buying another computer!

    You use iTunes, though only specific formats are supported.
    Which AppleTV modesl do you have? 1, 2 or 3?

  • Why can't I upload pdf files into the US District Court CM/ECF system?

    Since the last update to Firefox, I cannot upload pdf files into the Federal Court's e-filing system. When I press the browse file button, all the files (except jpg) files appear inactive and I cannot click on any file, esp. pdf files to upload. I tried it with Safari and had no trouble. I need this resolved asap as I routinely have done all my e-filing with Firefox. I had no issues in the past until the recent update. Thank you.

    The Bankruptcy Court announced a few months ago that updated versions of Firefox would not work with the ECF system. You have to download an older version of Firefox. I was able to download Firefox 3.6.19 and I run that only for bankruptcy filings.
    I know it doesn't make sense, but it works.
    Many people are evidently having the same trouble. I have no idea why the court system doesn't run software that works with the latest versions of Firefox. Or why the latest versions of Firefox don't work with the courts.
    I'm looking for a way to notify Firefox and to ask them to fix.
    Incidentally, over Labor Day weekend, the Bankruptcy Court - at least in Oregon - did a major software overhaul. But they didn't fix the Firefox issue.

  • How to upload a file into a db blob column from adf page

    How to upload a file into a db blob column from adf page
    Which option to use ?

    The forum search would be my first try...
    Then google...
    This has been asked at least once a week and got correct answers...
    Timo

  • How to upload a file into server using j2ee jsp and servlet with bean?

    How to upload a file into server using j2ee jsp and servlet with bean? Please give me the reference or url about how to do that. If related to struts is more suitable.
    Anyone help me please!

    u don't need j2ee and struts to do file uploading. An example is as such
    in JSP. u use the <input> file tag like
    <input type="file"....>You need a bean to capture the file contents like
    class FileUploadObj {
        private FormFile srcFile;
        private byte[] fileContent;
        // all the getter and setter methods
    }Then in the servlet, you process the file for uploading
        * The following loads the uploaded binary data into a byte Array.
        FileUploadObj form = new FileUploadObj();
        byte[] byteArr = null;
        if (form.signFile != null) {
            int filesize = form.srcFile.getFileSize();
            byteArr = new byte[filesize];
            ByteArrayInputStream bytein = new ByteArrayInputStream (form.srcFile.getFileData());
            bytein.read(byteArr);
            bytein.close();
            form.setFileContent(byteArr);
        // Write file content using Writer class into the destination file in the server.
        ...

  • How to change music in uc320?how to upload mp3 file into uc320?

    Dear all,
    how to change music in uc320?only one music in uc320?
    how to upload mp3 file into uc320?
    Thanks
    John

    I am evaluating the UC320 for a phone system replacement for our 100 locations.
    Allowing us to add an MP3 file to replace the current one would be a HUGE cost savings.
    This will help us cut cost when compared to the old system.
    Currently we are spending $180 on an external mp3 player for an mp3 that’s 3MB in size.
    If this system works out we are then going to recommend it to our 1800 franchisees.

  • When moving a file using drag and drop, as I hover over the destination folder it no longer opens, so I can't drop the file into the folder.  Why?

    When moving a file using drag and drop, as I hover over the destination folder it no longer opens, so I can't drop the file into the folder.  Why?  I have a heirarchical embedded folder structure under \Documents.  Usually, as I drag the file to be moved over the various folders, they will blink twice, then expand/open to reveal contents (in Finder).  Now, when the file to be moved is held (hovering) over the destination folder, it will not blink or expand, so there's no place to drop the file.  If I release the mouse button, the file image disappears, showing that it is "going back to the place it came from", a.k.a. was not moved.  This just started happening.  I noticed it after upgrading to Mavericks.  Is this a bug or could anything else be causing this?

    As of today, Apple Support discovered during a remote support session with me that the same thing happens on their own system.  It is isolated to "Column View"; the Icon and List views in Finder behave correctly.  Issue is being escalated to engineering, and Apple will call to report status in a couple days.  In all likelihood, this is a bug that will need to be addressed in a future update.

  • I exported my iBook and got the .ibooks file on my Desktop(iMac Retina 5K), I tried to put the file into the iBooks application but I get a message that says "The file "______.ibooks" couldn't opened because it isn't in the correct format.

    I exported my iBook and got the .ibooks file on my Desktop(iMac Retina 5K), I tried to put the file into the iBooks application but I get a message that says "The file "______.ibooks" couldn't opened because it isn't in the correct format.  I took the same file and transferred it in my MacBook Air and was able to put it in the  iBooks application no problem, the MacBook Air runs OS X v 10.9.5
    Please advise as to Why it would work on an older OS X version as oppose to the newer OS X Yosemite
    Thanks
    JP

    Thanks Lyra,
    I may be doing something wrong because looking at the "Purchased" in iBooks I only see all the books that I actually purchased, none of the iBooks that I created in iBooks Author shows up. I can re-download all the iBooks I've purchased and some in iCouds, but the ones I've created  in iBooks Author are no where to be found.
    Any help is much appreciated,
    Best Regards,
    JP

  • I plugged my usb cable connected with my iphone 4 to the computer, and then it shows up as Iphone, but there is no button to sync, and when i manually drag the files into the storage it would say "Device is no longer responding" and it just would not work

    I plugged my usb cable connected with my iphone 4 to the computer, and then it shows up as Iphone, but there is no button to sync, and when i manually drag the files into the storage it would say "Device is no longer responding" and it just would not work... Please help me and quick

    You need to check out the User Guide here: http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • How to upload a File in the Enterprise Portal (JAVA)

    Hi,
    i have a Question.
    We test the SAPNW2004sJavaSP9 Trial Version and we will upload a File in the SAP Database via the Enterprise Portal user interface.
    Where should I just to click...?
    How i can create a new Repository in the Folder Management ?
    Thanks for your help.
    Greetings,
    Steve Neubert

    Hi Steve,
    welcome to SDN and to the KM forums.
    Have a look at the KM Wiki section for introduction guides and frequently asked questions:
    https://wiki.sdn.sap.com/wiki/display/KMC
    This page is dealing with your specific question:
    https://wiki.sdn.sap.com/wiki/x/DV
    Come back if you need more information,
    Robert

  • How to Upload a File on the Server

    Hi,
    I want to upload a file on the server from Windows Mobile Application. Can anyone please suggest me a way to do so?
    Thanks in advance, 
    Saheli Sur

    Following links should also help
    http://blog.anthonybaker.me/2013/06/how-to-upload-file-from-windows-phone.html
    http://stackoverflow.com/questions/19954287/how-to-upload-file-to-server-with-http-post-multipart-form-data/20000831#20000831
    Gaurav Khanna | Microsoft .NET MVP | Microsoft Community Contributor

  • How to Combine multiple files into the one file?

    Hi all,
    How do I combine multiple canon hf10 avchd files into the one file with a new extension. No need to be compressed.
    Afterwards, I also want to split this combined file to original files.
    Need Help!

    Yes, angelanna. You can merge or split your video file via FCP sequence.
    ahaah, maybe I think angelanna would like to get the resulting file with MTS format because he mentioned “No need to be compressed”. Are you asking for this, angelanna?
    If so, a simple MTS files managing and editing tool  is needed. Maybe you can have a try the Mac version of Aunsoft Final Mate for managing HD camcorder footages. I just downloaded its free trial version and it offers a simple way of garping footages directly  from camcorder. And also it provides a attractive feature to join flawlessly and split accurately native MTS files for video file output with original MTS format.
    Maybe this is the tool cwhich an help you out, angelanna.
    Enjoy your video.

Maybe you are looking for