OSSUtil class

Constructors

OSSUtil()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

postObject(Credentials credentials, OSSConfig config, String filePath, String fileName, {CancelToken? cancelToken, ProgressCallback? progressCallback, Map? callbackParam}) Future<OSSResult>
credentials 服务端返回的 oss 签名信息 config oss 的配置信息 file 上传的文件 fileName 保存到 oss 上的全路径的文件名 (test/user/head.png) callbackParam 上传到 oss 的回调 上传的图片可以用 http://image-demo.oss-cn-hangzhou.aliyuncs.com/example.jpg?x-oss-process=image/info 查询图片信息