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

How to get real file path from uri #2911

Closed
USER4247 opened this issue Nov 4, 2023 · 2 comments
Closed

How to get real file path from uri #2911

USER4247 opened this issue Nov 4, 2023 · 2 comments
Labels

Comments

@USER4247
Copy link

USER4247 commented Nov 4, 2023

Hi , I am using send receive example to get files into my app , although I have modded the example so my app can accept any type of file instead of only videos . I checked the code behind send share , it seems like the code copies files to cache . I am implementing a file sharing system in my app so I need real file path to keep track of files that were unloaded so user must not reupload same copies but I cant get real file path from uri . I will provide modded code if needed .

for example , uri is somewhat like this content://some stuff , but I want /storage/emulated/0/ like path when receiving files

@misl6 misl6 added the support label Nov 4, 2023
Copy link

github-actions bot commented Nov 4, 2023

👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.

If you're having trouble installing or using python-for-android, maybe you could be interested in our quickstart guide.

Let us know if this comment was made in error, and we'll be happy to reopen the issue.

@github-actions github-actions bot closed this as completed Nov 4, 2023
@DisDoh
Copy link

DisDoh commented Feb 23, 2024

The modded code is always needed, for example I would need it. Could you please share your get_real_path_from_uri?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants