Skip to content

Not allowed to load local resource #11919

Closed Answered by FabianLars
RamyBouchareb25 asked this question in Q&A
Discussion options

You must be logged in to vote

i think plain file paths are generally not valid img sources. on top of that file:// urls aren't supported in tauri. Instead there's the asset: protocol (because we can't overwrite the file: protocol). The exact protocol differs per OS though so you should use convertFileSrc if possible https://v2.tauri.app/reference/javascript/api/namespacecore/#convertfilesrc

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RamyBouchareb25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants