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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get mp4 files from external storage(from smartphone) In android #1219

Closed
ghshgd opened this issue Dec 21, 2023 · 0 comments
Closed

can't get mp4 files from external storage(from smartphone) In android #1219

ghshgd opened this issue Dec 21, 2023 · 0 comments

Comments

@ghshgd
Copy link

ghshgd commented Dec 21, 2023

Description is same with title. Can't get mp4 files from smartphone. When I load files from smartphone with this code

const dirs = await RNFS.readDir(path);

  for (const dir of dirs) {
    if (dir.isDirectory()) {
      const files = await RNFS.readDir(dir.path);
        for (const file of files) {
          const files = await RNFS.readDir(dir.path);
          if (file.isFile()) {
            console.log(`filepath:${flie.path}`);
          }
        }
      }
    }

Only jpg files can be loaded not mp4 file. How can I load mp4 files? Someone let me know this.
note that I get permission,

@ghshgd ghshgd closed this as completed Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant