Use the API to manage large files

  • Last updated on: 2016-04-19
  • Authored by: Stephanie Fillmon

If you are interested in developing against the Rackspace Large File Support code to incorporate into your application, you should work directly with the Cloud Files API.

Note: If you prefer to use the Swift tool, see Use Swift to manage large files, and if you prefer Swiftly, see Use Swiftly to upload an image.

Use the following steps:

  1. Upload the segments:

    curl -X PUT -H 'X-Auth-Token: <token>' \
    http://<storage_url>/container/myobject/1 --data-binary '1'
    
    curl -X PUT -H 'X-Auth-Token: <token>' \
    http://<storage_url>/container/myobject/2 --data-binary '2'
    
    curl -X PUT -H 'X-Auth-Token: <token>' \
    http://<storage_url>/container/myobject/3 --data-binary '3'
    
  2. Create the manifest file:

    curl -X PUT -H 'X-Auth-Token: <token>' \
    
    -H 'X-Object-Manifest: container/myobject/' \
    http://<storage_url>/container/myobject --data-binary ''
    
  3. Download the segments as a single object:

    curl -H 'X-Auth-Token: <token>' \
    
    http://<storage_url>/container/myobject
    

Continue the conversation in the Rackspace Community.