flutter_oss_aliyun
flutter_oss_aliyun copied to clipboard
为啥上传的图片都被限制93b大小,图片都打不开
每次上传图片提示成功,但是实际上都失败了是什么原因
var resp = await Client().putObject(
filePath.codeUnits,
picName,
option: PutRequestOption(
onSendProgress: (count, total) {
print("send: count = $count, and total = $total");
},
onReceiveProgress: (count, total) {
print("receive: count = $count, and total = $total");
},
override: true,
aclModel: AclMode.inherited,
storageType: StorageType.standard,
headers: {"cache-control": "no-cache"},
// callback: const Callback(
// callbackUrl: "callbackUrl",
// callbackBody: "{"mimeType":${mimeType}, "filepath":${object},"size":${size},"bucket":${bucket},"phone":${x:phone}}",
// callbackVar: {"x:phone": "android"},
// calbackBodyType: CalbackBodyType.json,
// ),
),
);
这是实现代码,resp 没有返回值,filePath是本地图片地址,picName是存到oss的图片名称,请问一下这个问题出在哪里啊