Implement multipart support

- implemented NewMultipartUpload()
 - implemented CreateObjectPart()
 - implemented ListObjectParts()
 - implemented AbortMultipartUpload()
 - implemented CompleteMultipartUpload()
This commit is contained in:
Harshavardhana
2015-05-31 01:17:28 -07:00
parent 00a976adf1
commit d86ba5f336
6 changed files with 454 additions and 13 deletions

View File

@@ -266,7 +266,7 @@ func (fs *fsDriver) CreateObject(bucket, key, contentType, expectedMD5Sum string
h := md5.New()
mw := io.MultiWriter(file, h)
_, err = io.Copy(mw, data)
_, err = io.CopyN(mw, data, size)
if err != nil {
return "", iodine.New(err, nil)
}