forked from SaltwaterC/aws2js
-
Notifications
You must be signed in to change notification settings - Fork 0
S3 Multipart Upload API
SaltwaterC edited this page Jan 30, 2012
·
3 revisions
The S3 Upload Multipart API enables you the possibility to go over the 5 GiB limit of the s3.put() method.
- s3.get(path, resBodyHandler, callback) - for listing the parts and the multipart uploads
- s3.post(path, headers, reqBodyHandler, callback) - for initiating / completing the multipart upload
- s3.put(path, headers, reqBodyHandler, callback) - for uploading the parts of a multipart upload, or copy an existing uploaded part
- s3.del(path, callback) - for aborting a multipart upload
These methods allows you to roll your own support if the available helpers don't cover your usage model.
- s3.initUpload(path, cannedAcl, headers, callback)
- s3.abortUpload(path, uploadId, callback)
- s3.completeUpload(path, uploadId, uploadParts, callback)
- s3.putFilePart(path, partNumber, uploadId, fileHandler, callback)
- s3.putStreamPart(path, partNumber, uploadId, stream, headers, callback)
- s3.putBufferPart(path, partNumber, uploadId, buffer, callback)
- s3.putFileMultipart(path, file, cannedAcl, headers, partSize, callback)