Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Filesystem.stat() androind doesn't work #6989

Closed
loremru opened this issue Oct 11, 2023 · 2 comments
Closed

bug: Filesystem.stat() androind doesn't work #6989

loremru opened this issue Oct 11, 2023 · 2 comments

Comments

@loremru
Copy link

loremru commented Oct 11, 2023

Bug Report

Capacitor Version

馃拪 Capacitor Doctor 馃拪

Latest Dependencies:

@capacitor/cli: 5.5.0
@capacitor/core: 5.5.0
@capacitor/android: 5.5.0
@capacitor/ios: 5.5.0

Installed Dependencies:

@capacitor/cli: 5.4.2
@capacitor/android: 5.4.2
@capacitor/core: 5.4.2
@capacitor/ios: 5.4.2

[success] iOS looking great! 馃憣
[success] Android looking great! 馃憣

Platform(s)

Android

Current Behavior

On Android pickVideo returns path:
content://com.google.android.apps.photos.contentprovider/-1/2/content://media/external/video/media/1000000018/ORIGINAL/NONE/video/mp4/906508663
When i use this path with Filesystem.stat() application crashes
I think i should transform content:// to file://. How can I do it?

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.hashCode()' on a null object reference -

Expected Behavior

get stats

Code Reproduction

Other Technical Details

Additional Context

I think i should transform content:// to file://. How can I do it?

@ionitron-bot ionitron-bot bot added the triage label Oct 11, 2023
@ionitron-bot ionitron-bot bot removed the triage label Oct 11, 2023
@loremru loremru changed the title bug: bug: Filesystem.stat() androind doesn't work Oct 12, 2023
@jcesarmobile
Copy link
Member

closing as duplicate of ionic-team/capacitor-plugins#308

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2023
Copy link

ionitron-bot bot commented Nov 15, 2023

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants