Comments (6)
虽然不影响使用,但是我改了之后但是还是这个问题。
from aliossflutter.
我也不知道如何修改
from aliossflutter.
好吧
from aliossflutter.
private void secretInit() {
new AsyncTask<MethodCall,Void,Void>(){
@Override
protected Void doInBackground(MethodCall... methodCalls) {
MethodCall _call = methodCalls[0];
final String accessKeyId = _call.argument("accessKeyId");
final String accessKeySecret = _call.argument("accessKeySecret");
final String _id = _call.argument("id");
final String securityToken = _call.argument("securityToken");
final OSSCredentialProvider credentialProvider = new OSSStsTokenCredentialProvider(accessKeyId, accessKeySecret, securityToken);
oss = new OSSClient(registrar.context(), (String) _call.argument("endpoint"), credentialProvider);
return null;
}
}.execute(_call);
final String _id = _call.argument("id");
final Map<String, String> m1 = new HashMap();
m1.put("result", "success");
m1.put("id", _id);
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
channel.invokeMethod("onInit", m1);
}
});
}
你值得拥有!
from aliossflutter.
你可以试试pull requests 把你代码提交下
from aliossflutter.
自签名部分我修改源码了不适合,你可以根据此方法修改oninit() 顺便一提
alioss.responseFromUpload.listen((UploadResponse data) {
if (data.success) {
callback('http://$endPoint/$bucketName/${data.key}');
} else {
callback('0');
}
});
这个方法多次调用会将 之前的路径也返回 多次调用有时候会瞬间 返回好几条路径
from aliossflutter.
Related Issues (20)
- is also present at [com.aliyun.dpa:oss-android-sdk:2.9.3] AndroidManifest.xml:19:9-41 value=(@string/app_name).
- cant upload data HOT 1
- 使用上传地址和凭证上传 HOT 5
- servercallback 为什么一直为空 HOT 8
- Android 打包时有问题 HOT 1
- xcode报错Module 'aliossflutter' not found HOT 1
- android 上初始化出现错误
- clone下来的是空文件夹 HOT 1
- [!] No podspec found for `aliossflutter` in `.symlinks/plugins/aliossflutter/ios`
- 安卓build时报错 HOT 2
- pub.flutter-io 上面是0.0.4
- Compute signature failed! HOT 6
- Access Key Id you provided does not exist in our records
- 发现两个问题
- 无法初始化
- 前后端应该分离,Accesskey不应该保存在前端
- android 打包报错 HOT 2
- com.alibaba.sdk.android.oss.ClientException: Compute signature failed!
- 怎么一次性上传多张图片
- IOS上跟 fluwx 有冲突,生成的两个.o 文件冲突
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aliossflutter.