1 Reply Latest reply on May 26, 2016 11:15 AM by noelwhite

    Adding Attachments to JIVE create document

    biswasd

      I am entirely new to Jive and looking for help with a problem I have to solve. Using the Jive API(https://developers.jivesoftware.com/api/v3/) I have to attach multiple files to a document and create the document. I looked at the attachments api (Jive JavaScript API v3.14 → osapi.jive.corev3.attachments class )  but found no help or instructions on how this can be done. Your help would be greatly appreciated.

        • Re: Adding Attachments to JIVE create document
          noelwhite

          I have an open source project that utilizes the attachment API: GitHub - fmr-llc/jive-form

           

          You can find the code in the form_widget.js file in the function _form_submitForm_URL.  Look for the code

              $j.ajax({

               url: '/api/core/v3/attachments/contents/' + contentID,

               type: 'POST',

               data: formData,

               processData: false,

               contentType: false,

               success: function(data) {

                messageIn('<bold><a href="' + doc_link + '">' + name + '</a></bold> has been saved with the attachments specified',

                          'success',

                          5000);

               }

              });

          1 person found this helpful