Documentation ¶
Index ¶
Constants ¶
View Source
const MaxS3CreationTimeout = time.Duration(time.Second * 30)
View Source
const MaxUploadSize = 20 * 1024 * 1024 // 20MB
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3UploadClient ¶
type S3UploadClient struct {
// contains filtered or unexported fields
}
func NewS3UploadClient ¶
func NewS3UploadClient(endpoint string, s3Options Options) (*S3UploadClient, error)
func (*S3UploadClient) UploadFile ¶
func (s *S3UploadClient) UploadFile(w http.ResponseWriter, r *http.Request)
type UploadResponse ¶
type UploadResponse struct {
Files []UploadedFile `json:"Files"`
}
type UploadedFile ¶
type UploadedFile struct {
Key string `json:"key"`
}
Click to show internal directories.
Click to hide internal directories.