Difference between revisions of "Work.upload.chunk"

From Safe Creative API
Jump to navigation Jump to search
Line 26: Line 26:
= Returns =
= Returns =
* workuploadchunk
* '''workuploadchunk'''
** state: continue
** '''state''': continue
= Sample =
= Sample =

Revision as of 13:00, 5 May 2010

Upload a part of a work contents. Work contents are sent encoded in base64. You can send a chunk more than once, and chunk order is not relevant.

This component must be called on an upload API server returned by work.upload.lookup and after having called work.upload.begin with the same server and uploadid.

When you have sent all work content chunks, you must call work.upload.commit to finish the upload process.


  • Component name: work.upload.chunk
  • Signature: Requires signature using the authkey's private key
  • Timestamp: Requires ztime parameter
  • Authorization level: ADD


  • authkey*: Authorization key
  • ztime*: Z-Timestamp
  • uploadid*: Upload ID obtained from work.upload.lookup
  • data*: Chunk contents, Base64-encoded
  • offset*: Position of the first byte of the chunk within the full file (first byte is 0)
    • If all chunks have the same size (<chunksize> bytes)
      • First chunk has offset 0
      • Second chunk has offset <chunksize>
      • Third chunk has offset 2*<chunksize>
      • ...

* Required parameter


  • workuploadchunk
    • state: continue





<?xml version="1.0" encoding="UTF-8"?>