Skip to content

[docs] Adding more doc examples for working with file system on android/ios #3199

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

Open
erikpa1 opened this issue Mar 10, 2025 · 0 comments
Open

Comments

@erikpa1
Copy link

erikpa1 commented Mar 10, 2025

Hi,

in my company we had big struggles because we wanted to show <img src={"path/in/appdata/image.png"} /> it took incredibly a lot of effort to find the way how to do it. With some previous discussions on discord for my windows app we were able to patch some working code.

The magic how we found solution:

  1. if I wasn't asking this on discord long time ago my colleague would never find in documentation convertFileSrc
  2. after finding the function, we could not find proper security settings, we digged it from some forum.

Please add functionality convertFileSrc and example here:

https://v2.tauri.app/plugin/file-system/

It's quite logic, when I work with file system I want to show maybe some image related to data. Also some libs work with url path where I can't do readFile()

Also in https://v2.tauri.app/reference/javascript/api/namespacecore/#convertfilesrc I can't see tauri.config which enables getting the file....

@FabianLars FabianLars transferred this issue from tauri-apps/tauri Mar 10, 2025
@github-project-automation github-project-automation bot moved this to 🪵 Backlog in Documentation Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🪵 Backlog
Development

No branches or pull requests

1 participant