Package com.bytedesk.core.upload.cloud
Class TencentCos
java.lang.Object
com.bytedesk.core.upload.cloud.TencentCos
腾讯云对象存储
- Author:
- bytedesk.com on 2019/4/4
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionuploadAttachment
(org.springframework.http.MediaType mediaType, String fileName, int width, int height, String username, File file) uploadAvatar
(String fileName, File file) private String
uploadCommon
(String folder, String fileName, File file) 简单文件上传, 最大支持 5 GB, 适用于小文件上传, 建议 20 M 以下的文件使用该接口 大文件上传请参照 API 文档高级 API 上传uploadFile
(String fileName, File file) uploadImage
(String fileName, File file) 上传p12文件uploadVideo
(String fileName, File file) uploadVoice
(String fileName, File file)
-
Field Details
-
bucketLocation
-
bucketName
-
bucketDomain
-
appId
-
secretId
-
secretKey
-
uploadDirPrefix
-
-
Constructor Details
-
TencentCos
public TencentCos()
-
-
Method Details
-
uploadAttachment
-
uploadAvatar
-
uploadImage
-
uploadVoice
-
uploadVideo
-
uploadFile
-
uploadP12
上传p12文件- Parameters:
fileName
- 文件名build
- debug or releasefile
- file- Returns:
- string
-
uploadCommon
简单文件上传, 最大支持 5 GB, 适用于小文件上传, 建议 20 M 以下的文件使用该接口 大文件上传请参照 API 文档高级 API 上传- Parameters:
folder
- folderfileName
- filenamefile
- locale- Returns:
- string
-