Documentation
¶
Index ¶
- Constants
- Variables
- type Upload
- func (u *Upload) Ext(types []string) *Upload
- func (u *Upload) Form(form string) *Upload
- func (u *Upload) ImageTo(itype string) *Upload
- func (u *Upload) IsImage() *Upload
- func (u *Upload) Name(name string) *Upload
- func (u *Upload) NotRequired() *Upload
- func (u *Upload) Path(path string) *Upload
- func (u *Upload) Size(size int64) *Upload
- func (u *Upload) Upload() (Uploaded, error)
- type Uploaded
Constants ¶
View Source
const ( KB = 1 << 10 MB = 1 << 20 GB = 1 << 30 )
MB - one MB.
Variables ¶
View Source
var Mimes = map[string]string{}/* 765 elements not displayed */
Mimes ...
Functions ¶
This section is empty.
Types ¶
type Upload ¶
type Upload struct {
// contains filtered or unexported fields
}
Upload - upload struct.
func (*Upload) NotRequired ¶
NotRequired - make the form not required.
Click to show internal directories.
Click to hide internal directories.