forgot a seek

This commit is contained in:
Nathan LaFreniere 2015-12-31 13:19:41 -08:00
parent f771295149
commit 89532b4e90
1 changed files with 5 additions and 0 deletions

5
aws.go
View File

@ -200,6 +200,11 @@ func (a *AWS) Upload(local, remote string) error {
})
return err
} else {
_, err = file.Seek(0, 0)
if err != nil {
return err
}
debug("Uploading \"%s\" with Content-Type \"%s\" and permissions \"%s\"", local, contentType, access)
_, err = a.client.PutObject(&s3.PutObjectInput{
Bucket: aws.String(a.vargs.Bucket),