support huawei obs put object and file
support platform : All (Android、iOS、Windows、Mac、Linux、Web)
pubspec.yaml
add library
flutter_hw_obs:
git:
url: https://github.com/loongwind/flutter_hw_obs.git
ref: 0.0.3
init huawei obs ak、sk、domain and bucket
OBSClient.init("xxxxx", "xxxxxxxx", "https://xxxx.obs.cn-east-3.myhuaweicloud.com", "xxxx");
await OBSClient.putObject("test/test.txt", "Hello OBS");
await OBSClient.putFile("test/test.png", File("/sdcard/Downloads/test.gif"));
class OBSResponse{
String? objectName;
String? fileName;
String? url;
int? size;
String? ext;
String? md5;
}
- add debug switch
- add upload progress