Documentation ¶
Index ¶
- func CreateFile(address, filename string, fileSize int64) (fileUrl string, err error)
- func DeleteFile(fileUrls ...string) error
- func GetUploadInfo(fileUrl string) (offset, length int64, fileName string, err error)
- func WriteFile(r io.ReadSeeker, fileID string) (error, int64)
- type FileCreateParam
- type TusdController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
创建文件
func GetUploadInfo ¶
GetUploadProgress 获取文件上传进度
Types ¶
type FileCreateParam ¶
type TusdController ¶
type TusdController struct {
common.BaseController
}
上传文件(创建)
func (*TusdController) CreateTusdFile ¶
func (c *TusdController) CreateTusdFile()
API 创建文件 返回 tusd文件的url
Click to show internal directories.
Click to hide internal directories.