Giter Site home page Giter Site logo

Comments (7)

iShawnWang avatar iShawnWang commented on June 23, 2024 1

还是某些手机偶现, 愁人 !!!

from aliyun-oss-react-native.

iShawnWang avatar iShawnWang commented on June 23, 2024 1

未解决, 复现的情况是 自己拍照的照片没问题... 微信等三方 App 保存到相册中, 用这个库 上传, 就会有如上报错

from aliyun-oss-react-native.

Pzz0912 avatar Pzz0912 commented on June 23, 2024

你好,我也有这个问题
我把file://去掉也是无法上传

不过我使用android 5.1版本的手机上传的时候正常,最新版本的却报这个问题,请问还有其他的解决方法吗?

from aliyun-oss-react-native.

Kuhne1 avatar Kuhne1 commented on June 23, 2024

The error is to do with permissions
To use this library you must have the user accept storage permissions
Example with no permissions:
Error: /storage/emulated/0/bfd0e85803820e51ecf276d7dc96ab53e13f0a4aff8730f7010eb0c0b13fef37.jpg (No such file or directory)

With permissions, it should work.

Hope this helps

from aliyun-oss-react-native.

szj2935 avatar szj2935 commented on June 23, 2024

遇到同样的问题,
将getFilePathFromURI里的 Environment.getExternalStorageDirectory() 修改为 context.getExternalFilesDir(null),得到解决

from aliyun-oss-react-native.

yuyueguan-zhao avatar yuyueguan-zhao commented on June 23, 2024

我传进去的是file:///storage/emulated/0/Android/data/com.awesomeapp/cache/1554800192263.jpg 但是返回/storage/emulated/0/1554800192263.jpg // No such file or directory 请问要如何解决呢?是我没有获取到真实路径吗?还是其他的呢?

from aliyun-oss-react-native.

cuantmac avatar cuantmac commented on June 23, 2024

我传进去的是file:///storage/emulated/0/Android/data/com.awesomeapp/cache/1554800192263.jpg 但是返回/storage/emulated/0/1554800192263.jpg // No such file or directory 请问要如何解决呢?是我没有获取到真实路径吗?还是其他的呢?

+1

from aliyun-oss-react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.