Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type AfterUpload ¶ added in v1.1.0
type AfterUpload func(string, *Reply, http.ResponseWriter) *Reply
type Config ¶
type Config struct { Queue string `yaml:"queue" abs:"true"` //temp dir for chunks Store string `yaml:"store" abs:"true"` //final file directory Limit int64 `yaml:"limit"` //max upload size in byte Chunk int64 `yaml:"chunk"` //max size of a single chunk (0 means not limited) Conns int64 `yaml:"conns"` //concurrent uploads limit for a single session CORS bool `yaml:"cors"` //cross-origin resource sharing Iso bool `yaml:"isolated"` //files stored in subdirs named after uploader's token Check bool `yaml:"check"` //if enabled, client must provide md5 for each chunk // contains filtered or unexported fields }
type Handler ¶ added in v1.4.1
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) OnAfterUpload ¶ added in v1.4.1
func (uh *Handler) OnAfterUpload(done AfterUpload) *Handler
func (*Handler) OnBeforeUpload ¶ added in v1.4.1
func (uh *Handler) OnBeforeUpload(auth BeforeUpload) *Handler
Click to show internal directories.
Click to hide internal directories.