Skip to content
This repository was archived by the owner on Feb 1, 2021. It is now read-only.
This repository was archived by the owner on Feb 1, 2021. It is now read-only.

PutPolicy 为什么没有forceSaveKey字段 #182

Closed
@zltgo

Description

@zltgo

是官网的产品手册没有更新还是这个SDK没有实现...

官网的开发手册如下:
forceSaveKey :saveKey的优先级设置。为 true 时,saveKey不能为空,会忽略客户端指定的key,强制使用saveKey进行文件命名。参数不设置时,默认值为false

GO SDK的声明如下:
// PutPolicy 表示文件上传的上传策略
type PutPolicy struct {
Scope string json:"scope"
Expires uint64 json:"deadline" // 截止时间(以秒为单位)
IsPrefixalScope int json:"isPrefixalScope,omitempty"
InsertOnly uint16 json:"insertOnly,omitempty" // 若非0, 即使Scope为 Bucket:Key 的形式也是insert only
DetectMime uint8 json:"detectMime,omitempty" // 若非0, 则服务端根据内容自动确定 MimeType
FsizeLimit int64 json:"fsizeLimit,omitempty"
MimeLimit string json:"mimeLimit,omitempty"
SaveKey string json:"saveKey,omitempty"
CallbackFetchKey uint8 json:"callbackFetchKey,omitempty"
CallbackURL string json:"callbackUrl,omitempty"
CallbackHost string json:"callbackHost,omitempty"
CallbackBody string json:"callbackBody,omitempty"
CallbackBodyType string json:"callbackBodyType,omitempty"
ReturnURL string json:"returnUrl,omitempty"
ReturnBody string json:"returnBody,omitempty"
PersistentOps string json:"persistentOps,omitempty"
PersistentNotifyURL string json:"persistentNotifyUrl,omitempty"
PersistentPipeline string json:"persistentPipeline,omitempty"
EndUser string json:"endUser,omitempty"
DeleteAfterDays int json:"deleteAfterDays,omitempty"
FileType int json:"fileType,omitempty"

t time.Time

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions