Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*UploadLoader)
Option configures UploadLoader
func WithAccept ¶
WithAccept sets accepted Content-Type for uploads
func WithFormFieldName ¶
WithFormFieldName sets the form field name for multipart uploads
func WithMaxAllowedSize ¶
WithMaxAllowedSize sets maximum allowed size for uploaded images
type UploadLoader ¶
type UploadLoader struct {
// MaxAllowedSize maximum bytes allowed for uploaded image
MaxAllowedSize int
// Accept set accepted Content-Type for uploads
Accept string
// FormFieldName the form field name to extract file from multipart uploads
FormFieldName string
// contains filtered or unexported fields
}
UploadLoader handles POST request uploads and implements imagor.Loader interface
Click to show internal directories.
Click to hide internal directories.