...
|
...
|
@@ -77,7 +77,7 @@ func CreateUploadImage(header *protocol.RequestHeader, request *aliyun.CreateUpl |
|
|
request.FileName = aliyun.DefaultImageFileName
|
|
|
}
|
|
|
if !aliyun.ValidFileExt(aliyun.ImageFileExt, request.FileName) {
|
|
|
return nil, aliyun.OssErrFileFormat
|
|
|
return nil, protocol.NewCustomMessage(1, aliyun.OssErrFileFormat.Error())
|
|
|
}
|
|
|
request.Title = utils.GetFileName(header.AppProject, aliyun.FileImage, request.FileName)
|
|
|
rsp, err = aliyun.CreateUploadImage(client, request)
|
...
|
...
|
|