...
|
...
|
@@ -83,6 +83,10 @@ func CreateUploadImage(client *vod.Client, r *CreateUploadImageRequest) (respons |
|
|
request := vod.CreateCreateUploadImageRequest()
|
|
|
request.ImageType = "default"
|
|
|
request.Title = r.Title
|
|
|
if filepath.Ext(r.FileName) == "" {
|
|
|
err = fmt.Errorf("filename:%v invalid", r.FileName)
|
|
|
return
|
|
|
}
|
|
|
request.ImageExt = filepath.Ext(r.FileName)[1:]
|
|
|
request.AcceptFormat = "JSON"
|
|
|
//request.StorageLocation = filepath.Base(request.Title)
|
...
|
...
|
|