Skip to main content
1-Visitor
October 24, 2016
Question

PostMultipart

  • October 24, 2016
  • 2 replies
  • 2695 views

Hey guys,

I am trying to upload a file to my external REST API and I found a Snippet in the services called PostMultipart. I thought I could use it to upload a file from my repository, but I cant find any documentation about it and it is not working.

That's the snippet I am talking about:

Does someone know if I can use it to upload or know what could went wrong?

2 replies

5-Regular Member
October 25, 2016

What version of ThingWorx? Does your external REST API have services that upload documents? If so, why not just call one of those?

mludyga1-VisitorAuthor
1-Visitor
November 3, 2016

I have ThingWorx 7.2.1. I thought i could use the prepared service. After some tries I made an extension in Java to make a post request and it is working now.

5-Regular Member
November 3, 2016

Oh, that's good to hear! I am glad you got it working

1-Visitor
August 1, 2018