Skip to content

[BUG] Path problem on harmony system. #292

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

Closed
std-s opened this issue Feb 12, 2025 · 5 comments
Closed

[BUG] Path problem on harmony system. #292

std-s opened this issue Feb 12, 2025 · 5 comments
Labels
i: read document The author of the issue didn't read the document.

Comments

@std-s
Copy link

std-s commented Feb 12, 2025

Describe the bug
When the recording is finished, the path in "entity" is not the real path.

How to reproduce
Official demo

Steps to reproduce the behavior:

  1. Take a photo;
  2. Check the absolute path A in "entity" and the path B of the photo in the phone;
  3. Found that the paths A and B are inconsistent, resulting in the inability to obtain it correctly. In other words, A is the wrong path.

Version information

  • Device: Huawei Mate 60 Pro
  • OS: HarmonyOS 5.0.0
  • Package Version: "4.3.7"
  • Flutter Version: 3.22.0
@std-s std-s added the await investigate The issue is waiting for further investigation. label Feb 12, 2025
@AlexV525
Copy link
Member

AssetEntity does not have a path member.

@std-s
Copy link
Author

std-s commented Feb 13, 2025

final file = await entity.file;

final path = file!.path;

The path obtained here is inconsistent with the actual image path in the mobile phone.

@AlexV525 AlexV525 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2025
@AlexV525 AlexV525 added i: read document The author of the issue didn't read the document. and removed await investigate The issue is waiting for further investigation. labels Feb 13, 2025
@std-s
Copy link
Author

std-s commented Feb 13, 2025

@AlexV525

final file = await entity.file;

final exists = file!.existsSync();

I want to store images locally for uploading, but when I use "file!.existsSync();" it says the file does not exist. What's going on?

@AlexV525
Copy link
Member

File issues in the photo_manager repo with a reproducible minimal example without using the picker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i: read document The author of the issue didn't read the document.
Projects
None yet
Development

No branches or pull requests

2 participants