Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do I upload small files via the native Swift API?

I'm trying to upload a simple test.xml file via Swift API. This is my current code which times out: curl -i https://xyz.clouddrive.com/v1/my-container/test.xml -X PUT -H "X-Auth-Token: my-token"

But the client times out and actually I don't know how to refer to the actual file text.xml which should be uploaded?

Running the GET command works find: curl -i https://xyz.clouddrive.com/v1/my-container/ -X GET -H "X-Auth-Token: my-token"

How do I to upload small files via the native a file using PUT with Swift API?

I'm trying to upload a simple test.xml file via Swift API. This is my current code which times out: out:

 curl -i https://xyz.clouddrive.com/v1/my-container/test.xml -X PUT -H "X-Auth-Token: my-token"

my-token"

But the client times out and actually I don't know how to refer to the actual file text.xml which should be uploaded?

Running the GET command works find: find:

 curl -i https://xyz.clouddrive.com/v1/my-container/ -X GET -H "X-Auth-Token: my-token"

my-token"