0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-21 14:50:39 +00:00

forgot a seek

This commit is contained in:
Nathan LaFreniere 2015-12-31 13:19:41 -08:00
parent f771295149
commit 89532b4e90

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),