文件上传流程
actor user as "用户"
participant Client as "浏览器"
participant Server as "服务端"
participant COS as "腾讯云"
autonumber
COS <- COS: 开通腾讯COS服务并获取密钥
Server <- Server: 配置密钥
user -> Client: 点击上传按钮
user -> Client: 选择上传文件
Client -> Server: 向服务端发起请求需要上传的文件名
Server -> COS: 结合密钥,向COS请求生成 __临时密钥__
Server <- COS: 返回 __临时密钥__
Client <- Server: 返回 __临时密钥__
Client -> Client: 通过 __临时密钥__ ,实例化 cos-js-sdk-v5
Client -> COS: 调用 putObject 方法,将图片上传到至腾讯云
Client <- COS: 返回 腾讯云图片地址
user <- Client: 用户展示图片
... ...
hnote over Server: 多种上传文件的方法,由后台配置相关权限
Client -> COS: PostObjec\MultipartUpload\ ...
Client <- COS: 返回 腾讯云图片地址
user <- Client: 用户展示图片