Setting Up Use From a Mobile Device > Upload a file to the portal
Upload a file to the portal
Upload a file. For example, upload the file “file.txt” to “My Files”.
API
ServicesPortal/upload/folders/{folder}
URI
http://portal_url/ServicesPortal/upload/folders/{folder} where portal_url is the URL of the team portal.
HTTP Method
POST
Request Content-Type
multipart/form-data
Request Headers
Overwrite=T/F – Set to T if you want to overwrite an existing file or F, the default, not to overwrite the file
Boundary=boundary – a user defined value that is used as the encapsulation boundary in the request body.
Request body example
boundary
Content-Disposition: form-data; name="Filename"
filename
 
boundary
Content-Disposition: form-data; name="fullpath"
URI
 
boundary
Content-Disposition: form-data; name="filedata"
file_in_binary_format
Expected Response status
200 OK
cURL Example
curl -X POST -H "Content-Type: multipart/form-data" -H "Overwrite: T" -H "Boundary: --Boundary" -H "Cache-Control: no-cache" -H "Postman-Token: 63450a91-a4c1-77eb-fb6b-6c35cc807cb7" -d '--Boundary
Content-Disposition: form-data; name="Filename"
myfile.txt
 
--Boundary
Content-Disposition: form-data; name="fullpath"
https%3A%2F%2Ftest.myctera.com%2FServicesPortal%2Fwebdav%2Fmyfiles%2Fmyfile.txt
 
--Boundary
Content-Disposition: form-data; name="filedata"
file_in_binary_format' "https://portal_url/ServicesPortal/upload/folders/myfiles"