After creating a container, you can upload a local file. For this example, let's
upload a screenshot image. The -T switch specifies the full path to the local
file to upload.
Example 4.4. cURL Upload Storage Object
curl–X PUT-T screenies/wow1.jpg-D- \-H "ETag: 805120ec285a7ed28f74024422fe3594"\-H "Content-Type: image/jpeg"\-H "X-Auth-Token: fc81aaa6-98a1-9ab0-94ba-aba9a89aa9ae"\-H "X-Object-Meta-Screenie: Mel visits Outland"\https://storage.swiftdrive.com/v1/CF_xer7_343/images/wow1.jpg
HTTP/1.1 201 Created
Date: Thu, 09 Jul 2009 17:03:36 GMT
Server: Apache
Content-Length: 0
Etag: 805120ec285a7ed28f74024422fe3594
Content-Type: text/plain
