But this only works for files that are on the public Internet and can be downloaded by Spark's servers. Spark pulls the files down. However, if you want to push the file to Spark, for example to upload a file from your local hard drive, it gets a little more complicated.
We’re making all of that easier now because we now support file upload via the Messages API. This means you no longer have to put your files on the public Internet for them to be attached.
How it Works:
The Spark API accepts file uploads as a MIME upload in the same way your web browser would upload a file in a web form. The two most important aspects are 1) to name the field to which you send "files" and 2) to set your Content-Type header to be multipart/form-data including a boundary.
The boundary is part of the MIME specification and is essentially any string that won't appear in the binary encoding of the file; it’s used by the server to determine where the file content ends and the request starts.
Above, you’ll need to replace the variables with ones suitable for you, with the exception of the url. The filetype and filepath are totally dependent on the file you are attempting to upload - a full path to the file is expected, and the first slash in the above filepath value represents root, so it’s “root” followed by ‘/Users/taylorhanson/Desktop/screenshot.png'. The roomId value can be found from the developer portal: https://developer.ciscospark.com/endpoint-rooms-get.html
Hi All,I am having issue with the Connect Timeout value for the REST call studio element where web service is throwing cnnect timeout well before the timeout value that is set for it..CVP/VXML Application with multiple REST elements connecting to multiple...
Hi,We have a web application that uses the CUCM's AXL and Serviceability APIs.This app worked well in production and development environments until our last patch update to the CM in both environments.Current CM version is: 22.214.171.12400-18.Previous CM ver...
Hi,Seem I am not able to edit live data query or customize the report.Here am getting feedback from client, in Agent LiveData report, when the column 'Agent ID' is un-hid, the data shown is not the Agent ID configured in CCE admin. Checked and found that ...
Hi Guys,I want to activate the home cluster and associate end device on the end user menu. I managed to get it working using Postman. Below are the code.<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.ci...