tauri-apps / tauri-apps/tauri-docs
[docs] Adding more doc examples for working with file system on android/ios
Nobody has claimed this yet.
- Dominant language
- MDX
- Stars
- 1.1k
- Forks
- 887
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 48
Description
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:
- if I wasn't asking this on discord long time ago my colleague would never find in documentation convertFileSrc
- 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....
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the file-system plugin page at https://v2.tauri.app/plugin/file-system/ and the convertFileSrc reference at https://v2.tauri.app/reference/javascript/api/namespacecore/#convertfilesrc. Document how to use convertFileSrc for an image path and include the required security configuration; done means both pages clearly explain the working setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100