Hi all,
We are using the vCloud REST API to upload ovf packages, as described in the documentation VMware vCloud Director 5.5 Documentation Center and we are having some problems.
While following the API guide, we are able to retrieve the upload links, authorization token etc.and prepare the vCD for upload, but we have problems uploading the actual files using the PUT Method, with headers according to the API documentation. The only way we've been able to upload the file is by using cURL. When we to use our little Javascript client, we get the following results:
Firefox: We get the 200 OK response for the browser OPTIONS call from the vCloud Jetty server, but the actual upload (PUT) never takes place and Firefox is blocking the transfer because the vCD server response does not contain the proper CORS headers.
Chrome: With the exact same headers, we get an error 500 with no other details
Does anybody know if the vCD Jetty server actually supports Cross-Domain requests (CORS)? Is what we are trying to do supported at all. We tried many things and none seem to work. If not how can we get file upload to using the REST API work?
Thanks in advance
/Sebastien