61 Replies Latest reply on Jul 22, 2016 8:11 AM by historian

    Bulk upload to Jive Cloud: use the Windows app "Upload to Jive"

    xsingy

       

      Introduction

       

      Here's a free open source tool that you can use to bulk upload your content into your Jive Cloud instance:

       

      UploadToJive.exe

       

      I coded it in my free time at home using AHK and CURL. Use it at your convenience - I'm not asking for anything except for your feedback ;-)

       

      You'll find details on how to use it below (these are instructions for end users).

       

      Enjoy!

       

      Xavier

       

      PS: I'm thinking of some other utilities, such as "Move My Content" or "Download all from Jive" etc. If you've got bright ideas, let me know!

       


       

      Using it

       

      1) Download the application "UploadToJive.exe"

       

      Save it on your computer

      There is no installation required. Anyone can use it.

       

      2) Double click the app

       

      3) fill in the dialog box

       

      UploadToJiveImage.jpg

       

      Note that "User ID" is actually the user name you use when you login.

       

      IMPORTANT: IF YOU ACCESS INTERNET THROUGH A PROXY THIS REQUIRES the following:

      fill in "More CURL parameters" with the following information:

      -x http://myproxy.com:myproxyport --proxy-user <userID>:<password> -k

       

      Using <userID> and <password> tells the system to use the same userID and password

      and the ones you provided above in the form.

       

      Advanced features

       

      Using a config file

       

      To make things easier for your team, you can create a file named UploadToJive.cfg,

      which will provide pre populated fields in UploadToJive.exe form. Set the fields

      you want with the values you want. The ones not used will be skipped.

       

      List of available fields:

        jiveInstanceURL

        filePattern

        tags

        categories

        placeName

        updateExisting

        userID

        password

        curlExtra (extra CURL attributes for special cases (proxy, etc - see "More CURL parameters example above)

        debug (set debug to 1 to output Jive server response to the out.txt file)

        prompt (set prompt to "authenticate" to only prompt for username and password but no other field;set prompt to "none" for no prompt at all)

        list (read below, for multi file upload)

       

      Example format of UploadToJive.cfg:

      {

      "jiveInstanceURL" : "https://mycompany.jiveon.com",

      "curlExtra" : "-x http://myproxy.com:myproxyport --proxy-user <userID>:<password> -k"

      }

       

      Drop it in the same folder as UploadToJive.exe. When the user starts UploadToJive.exe the fields will already have the values you defined..

       

      Using a config file to upload many files with different attributes to different places

       

      To upload multiple files with different parameters, provide the attributes in a multi levels

      level 0: list

      level 1: placeName

      level 1: list

      level 2: fileName, tags, categories[, subject][, text]

      example: "list" : [{"placeName" : "Jive Anywhere test group","list" : [{"filePattern" : "c:/temp/s*.jpg","tags":["blue","green"]},{"filePattern" : "c:/temp/k*.png","tags":["purple","lemon"],"text":"<body><div class=\"jive-rendered-content\"><p>adding some description</p><p><strong>some bold text</strong></p><p style=\"min-height: 8pt; padding: 0px;\"> </p><table><tbody><tr><td style=\";\">and a cell in a table</td><td style=\";\">another celle</td></tr><tr><td style=\";\">and a 3 cell in a table</td><td style=\";\">another 4 cell</td></tr></tbody></table></div></body>"}]}]

       

      Command Line

       

      You can upload using a Command Line and based on the UploadToJive.cfg file, user may or not be prompted for input.

       

      If you do not understand what a "command line" is then use the other method (see "Using it" section above)

       

      For command line usage, type the command

      UploadToJive.exe ?

      and you will find how to use it. Here's an example

      UploadToJive.exe "https://mycompany.jiveon.com" "c:/temp/w*.png" "test" "" "102020" 1 myuserid mYpAssWord "-x http://gateway.zproxy.net:9480 --proxy-user <userID>:<password> -k"