mirror of
https://github.com/thegeeklab/wp-s3-action.git
synced 2024-11-25 10:20:39 +00:00
forgot a seek
This commit is contained in:
parent
f771295149
commit
89532b4e90
5
aws.go
5
aws.go
@ -200,6 +200,11 @@ func (a *AWS) Upload(local, remote string) error {
|
|||||||
})
|
})
|
||||||
return err
|
return err
|
||||||
} else {
|
} else {
|
||||||
|
_, err = file.Seek(0, 0)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
debug("Uploading \"%s\" with Content-Type \"%s\" and permissions \"%s\"", local, contentType, access)
|
debug("Uploading \"%s\" with Content-Type \"%s\" and permissions \"%s\"", local, contentType, access)
|
||||||
_, err = a.client.PutObject(&s3.PutObjectInput{
|
_, err = a.client.PutObject(&s3.PutObjectInput{
|
||||||
Bucket: aws.String(a.vargs.Bucket),
|
Bucket: aws.String(a.vargs.Bucket),
|
||||||
|
Loading…
Reference in New Issue
Block a user