Comments (7)
@LinZh107 1. 请确认采取的是1.0.0-alpha.5的版本。(2)android端吗?(3)你代码里这个东西 'jonglim/hand-test' + rendom++ 是什么格式
from aliyun-oss-react-native.
@luozhang002 你好,
- 是1.0.0-alpha.5的版本,android端,ios还没试
- 第二个参数 ['jonglim/hand-test' + rendom++] 最终会是拼接成jonglim/hand-test9527 之类的字符串
- 初始化 initWithSecurityToken 的其他参数都是后台返回的,asyncUpload 的第三个参数是手机本地文件路径,
依照打印log来看是不是说有上传了? (感觉上传一张手机screenshot还是要了好几秒的~)
from aliyun-oss-react-native.
uploadProgress看log你好像是有进度的,说明回调走了,应该是上传中,可以看你的bucket上看上有没有上传成功。你的那个手机本地路径是file:///开头的吗?环境操作的时候是模拟器还是真机
from aliyun-oss-react-native.
你读取本地文件的时候用的是react native的那个库,这个报错我react -native一下framesToPop":1,"code":"EUNSPECIFIED @itinance/react-native-fs#355 @https://github.com/idehub/react-native-billing/issues/47
from aliyun-oss-react-native.
token 的权限和 所建目录的权限不匹配
from aliyun-oss-react-native.
@luozhang002 用真机跑的,文件路径是file:///开头, component 可以正常显示照片。
PS: 上传成功了。
原来是第二个参数'objectkey'没用对,这个参数实际是文件‘folder/filename’这样的结构,而且folder是后台管理的,只能多选一。可是关于用法,好像没看到有文档说明?
from aliyun-oss-react-native.
@LinZh107 React Native这个项目后期会挂到官网,现在还处于收集反馈阶段,可能文档还不全面,我这变会不定期的更新的,感谢反馈
from aliyun-oss-react-native.
Related Issues (20)
- 请问还会更新吗? HOT 3
- 在pod install的时候 Installing AliyunOSSiOS 一直卡在这边 HOT 2
- com.aliyun.oss.clientError Code=6 HOT 1
- AliyunOSS.asyncDownload 下载文件问题
- android studio下,加载aliyun-oss-react-native包报错
- 请问下这个问题如何解决?Unable to resolve host "xxx.aliyuncs.com": No address associated with hostname
- 调用initWithSecurityToken会卡住js线程吗?
- 安装OSS模块后app launch compile错误 HOT 6
- asyncUpload method can't find the file path HOT 3
- android Q没有适配,上传图片路径会出错 HOT 1
- Attempt to invoke virtual method 'void com.reactlibrary.AliyunUploadManager.asyncUpload(com.facebook.react.bridge.ReactContext, java.lang.String, java.lang.String, java.lang.String, com.facebook.react.bridge.ReadableMap, com.facebook.react.bridge.Promise)' on a null object reference HOT 2
- 模块3年没有更新,已经abandoned? HOT 1
- AliyunUploadManager.java uses unchecked or unsafe operations.
- 公告:这个SDK后面有时间准备重新搞起来了,大家有issue,有PR的欢迎可以提交 HOT 17
- 上传图像在Android emulator运行通畅但在安桌手机上stuck HOT 1
- 请为 Expo 创建一个 Config Plugin
- yarn ios 报错 HOT 5
- 这个项目还在维护嘛?还能使用嘛? HOT 1
- Could not GET 'https://oss.sonatype.org/content/repositories/snapshots/com/aliyun/dpa/oss-android-sdk/2.3.0-SNAPSHOT/maven-metadata.xml'. Received status code 502 from server: Bad Gateway HOT 2
- 在Android10以上,上传文件失败,原因已找到,请修复
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 aliyun-oss-react-native.