Upload file to ThingWorx cloud from REST URL
Hi Team,
Basically I have created a file upload widget (mashup) which uploads the file to my thingWorx cloud instance manually(click on browse->upload) and it was a success.
Now I wanted to automate the activity from REST Client like postman.
In body selected binary - and browsed the file to upload and hit send in postman
I recieved the error response.
<html>
<head>
<title>Apache Tomcat/7.0.52 - Error report</title>
<style>
<!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}-->
</style>
</head>
<body>
<h1>HTTP Status 500 - Content type may not be null</h1>
<HR size="1" noshade="noshade">
<p>
<b>type</b> Status report
</p>
<p>
<b>message</b>
<u>Content type may not be null</u>
</p>
<p>
<b>description</b>
<u>The server encountered an internal error that prevented it from fulfilling this request.</u>
</p>
<HR size="1" noshade="noshade">
<h3>Apache Tomcat/7.0.52</h3>
</body>
</html>
However I were able to successfully download the file from REST with GET method and later created a java application to download the file.
I am stuck with steps to upload file to cloud using rest.
Thanks,
Suraj.S

