Documentation ¶
Index ¶
Constants ¶
View Source
const BufSz = int(256 * datasize.KB)
BufSz is the buffer size for each upload. This is 1MB.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrFileTooLarge ¶
func (ErrFileTooLarge) Error ¶
func (err ErrFileTooLarge) Error() string
func (ErrFileTooLarge) StatusCode ¶
func (err ErrFileTooLarge) StatusCode() int
type LimitedReader ¶
type LimitedReader struct { Bytes int64 CType string // internal only // contains filtered or unexported fields }
func NewLimitedReader ¶
func NewLimitedReader(r LimitedReaderer, max int64) *LimitedReader
type Reader ¶
Reader ensures that Read calls will read the complete stream even after sniffing. Reads wrapped in Reader are inherently buffered.
func (*Reader) ContentType ¶
Click to show internal directories.
Click to hide internal directories.