PutPolicy class
上传策略
更多信息请查看官方文档-上传策略
Constructors
- PutPolicy({required String scope, required int deadline, int? isPrefixalScope, int? insertOnly, String? endUser, String? returnUrl, String? returnBody, String? callbackUrl, String? callbackHost, String? callbackBody, String? callbackBodyType, String? persistentOps, String? persistentNotifyUrl, String? persistentPipeline, bool? forceSaveKey, String? saveKey, int? fsizeMin, int? fsizeLimit, int? detectMime, String? mimeLimit, int? fileType})
-
const
-
PutPolicy.fromJson(Map<
String, dynamic> json) -
factory
Properties
- callbackBody → String?
-
上传成功后发起的回调请求。
final
- callbackBodyType → String?
-
上传成功后发起的回调请求的 Content-Type。
final
- callbackHost → String?
-
上传成功后,七牛云向业务服务器发送回调通知时的 Host 值。
final
- callbackUrl → String?
-
上传成功后,七牛云向业务服务器发送 POST 请求的 URL。
final
- deadline → int
-
上传凭证有效截止时间。
final
- detectMime → int?
-
开启 MimeType 侦测功能。
final
- endUser → String?
-
唯一属主标识。
final
- fileType → int?
-
文件存储类型
final
- forceSaveKey → bool?
-
saveKey 的优先级设置。
final
- fsizeLimit → int?
-
限定上传文件大小最大值,单位 Byte。
final
- fsizeMin → int?
-
限定上传文件大小最小值,单位 Byte。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- insertOnly → int?
-
限制为新增文件。
final
- isPrefixalScope → int?
-
若为 1,表示允许用户上传以 scope 的 KeyPrefix 为前缀的文件。
final
- mimeLimit → String?
-
限定用户上传的文件类型。
final
- persistentNotifyUrl → String?
-
接收持久化处理结果通知的 URL。
final
- persistentOps → String?
-
资源上传成功后触发执行的预转持久化处理指令列表。
final
- persistentPipeline → String?
-
转码队列名。
final
- returnBody → String?
-
returnBody 声明服务端的响应格式。
final
- returnUrl → String?
-
Web 端文件上传成功后,浏览器执行 303 跳转的 URL。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saveKey → String?
-
自定义资源名。
final
- scope → String
-
指定上传的目标资源空间 Bucket 和资源键 Key(最大为 750 字节)。
final
Methods
-
getBucket(
) → String - 获取 Bucket。
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited