Documentation
¶
Index ¶
Constants ¶
View Source
const ( MB = 1024 * 1024 FloatMB = float64(MB) MaxFileSize = 2097152000 // 4000 parts of 512 KB each (4000 * 512 * 1024) ThreeSeconds = 3 * time.Second )
Variables ¶
View Source
var (
ErrFileTooBig = errors.New("file size exceeds 2gb")
)
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) DeleteTemp ¶
func (px *Proxy) DeleteTemp()
func (*Proxy) PrepareToUpload ¶
PrepareToUpload seeks the underlying fd to the beginning of the file to allow uploading. it also resets the times used for progress and sets the size in case it was unknown while downloading.
Click to show internal directories.
Click to hide internal directories.