Created
December 4, 2016 03:36
-
-
Save lolsborn/2dc1cf3d15a15b5ba10f01685912dc87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/resources/images/s3/filestorage.go b/resources/images/s3/filestorage.go | |
index 52968bd..2a485b8 100644 | |
--- a/resources/images/s3/filestorage.go | |
+++ b/resources/images/s3/filestorage.go | |
@@ -131,19 +131,19 @@ func (s *SimpleStorageService) Exists(objectID string) (bool, error) { | |
// Puts object into AWS S3 | |
func (s *SimpleStorageService) PutFile(objectID string, image *os.File) error { | |
- fi, err := image.Stat() | |
- if err != nil { | |
- return err | |
- } | |
+// fi, err := image.Stat() | |
+// if err != nil { | |
+// return err | |
+// } | |
params := &s3.PutObjectInput{ | |
Body: image, | |
Bucket: aws.String(s.bucket), | |
Key: aws.String(objectID), | |
- ContentLength: aws.Int64(fi.Size()), | |
+// ContentLength: aws.Int64(fi.Size()), | |
} | |
// Ignore out object? | |
- _, err = s.client.PutObject(params) | |
+ _, err := s.client.PutObject(params) | |
return err | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment