file object not showing in postbody of rest connector

  • Shivam
        3 years ago #24389

        Hello Simplifier community,

        I am working on application to add issues on jira. I am using jira rest api. I am having issues while adding attachments to an existing issue. On jira side, it expects the data to be of the content-type – ‘multipart-formdata’. So, want to pass an object of file type in the body of the request. But after running, when I inspect the issue in network tab, the file object is not seen in the request json. So, the file object is not being passed to the postBody of the connector. How to fix this issue? I am attaching some screenshots for clear understanding.

        Attachments:
        You must be logged in to view attached files.
        Armin Winkler
            Has successfully completed the online course Introduction
            Has successfully completed the online course Intermediate (200)
            Has successfully completed the online course Advanced (300)
            Has successfully completed the online course Basics (100)
          2 years ago #34183
          Up
          1
          Down
          ::

          Hi Christoph,

           

          unfortunately the REST connector still does not support multipart file uploads in the current state of development. Your workaround would be to execute the necessary requests to the external interface via a client-side XHR / ajax call. Adding this capability to the REST connector however is still very much planned for a future release. I will add your name to the list of interested customers.

           

          Kind regards,

          Armin

          Armin Winkler
              Has successfully completed the online course Introduction
              Has successfully completed the online course Intermediate (200)
              Has successfully completed the online course Advanced (300)
              Has successfully completed the online course Basics (100)
            3 years ago #24462
            Up
            0
            Down
            ::

            Hi Shivam,

             

            unfortunately you won’t be able to use Simplifier’s REST connector for this use case as it does not support multipart as of now. This limitation is known to us and will be eliminated in a future Simplifier release. However I cannot provide you with an exact due date for this enhancement yet. Please check the changelogs of the upcoming Simplifier releases to see if multipart support has been added to the REST connector.

             

            Regards,

            Armin

            Christopher Steinbach
                2 years ago #34171
                Up
                0
                Down
                ::

                Hi Armin,

                I have a similar use case like Shivam. Can Simplifier V7 do multipart-formdata file uploads?

                Thanks for your help.

                Christopher Steinbach
                    2 years ago #34184
                    Up
                    0
                    Down
                    ::

                    Hi Armin,

                    unfortunately a client side request is not an option due to security risks.

                    We are happy to see this feature in a future release. Meanwhile we are going to handle this use case with a microservice outside simplifier.

                  Viewing 5 posts - 1 through 5 (of 5 total)

                  You must be logged in to reply to this topic.