소스 검색

Merge pull request #250 from n8225/fixS3MultiPartUpload

Fix s3 100MB max upload issue.
tags/v1.1.3
Andrea Spacca 4 년 전
committed by GitHub
부모
커밋
6c54ddccef
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -0
      README.md
  2. +0
    -2
      server/storage.go

+ 1
- 0
README.md 파일 보기

@@ -96,6 +96,7 @@ provider | which storage provider to use | (s3, gdrive or local) |
aws-access-key | aws access key | | AWS_ACCESS_KEY
aws-secret-key | aws access key | | AWS_SECRET_KEY
bucket | aws bucket | | BUCKET
s3-endpoint | Custom S3 endpoint. | |
s3-region | region of the s3 bucket | eu-west-1 | S3_REGION
s3-no-multipart | disables s3 multipart upload | false | |
s3-path-style | Forces path style URLs, required for Minio. | false | |


+ 0
- 2
server/storage.go 파일 보기

@@ -243,9 +243,7 @@ func (s *S3Storage) Put(token string, filename string, reader io.Reader, content

// Create an uploader with the session and custom options
uploader := s3manager.NewUploader(s.session, func(u *s3manager.Uploader) {
u.PartSize = (1 << 20) * 5 // The minimum/default allowed part size is 5MB
u.Concurrency = concurrency // default is 5
u.MaxUploadParts = concurrency
u.LeavePartsOnError = false
})



불러오는 중...
취소
저장