作者 yangfu

限制两百M

... ... @@ -21,7 +21,7 @@ type BuckObject struct {
FileName string `json:"fileName"`
}
//创建视频上传凭证
// 创建视频上传凭证
func CreateOssUpload(header *protocol.RequestHeader, MultipartForm *multipart.Form) (rsp interface{}, err error) {
var objects []aliyun.Object
var listPath []BuckObject
... ... @@ -34,7 +34,7 @@ func CreateOssUpload(header *protocol.RequestHeader, MultipartForm *multipart.Fo
for k, _ := range MultipartForm.File {
v := MultipartForm.File[k]
for i := range v {
if v[i].Size > 1024*1024*50 {
if v[i].Size > 1024*1024*200 {
continue
}
f, _ := v[i].Open()
... ... @@ -67,7 +67,7 @@ func CreateOssUpload(header *protocol.RequestHeader, MultipartForm *multipart.Fo
return
}
//创建视频上传凭证
// 创建视频上传凭证
func CreateStsAuth(header *protocol.RequestHeader, files []string) (rsp interface{}, err error) {
access, e := aliyun.DefaultSts()
if e != nil {
... ...