Solved
Best way to upload Video file to Thingworx Repository via REST API
Hi all,
Could any one suggest best way to upload Video file to Thingworx Repository using REST API. (File size varies from MB to GB )
Thanks in Advance.
/VR
Hi all,
Could any one suggest best way to upload Video file to Thingworx Repository using REST API. (File size varies from MB to GB )
Thanks in Advance.
/VR
Hello
Here's a basic example using cURL:
curl -v -H "X-XSRF-TOKEN: TWX-XSRF-TOKEN-VALUE" -H "AppKey: $APPKEY" \
-F "upload-repository=SystemRepository" \
-F "upload-submit=Upload" \
-F "file=@myvideo.mp4;type=video/mp4" "$TWXURL/FileRepositoryUploader"
Obviously you would need to adjust the filename and MIME type.
Regards,
Constantine
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.