Replies: 4 comments 11 replies
-
Disclaimer for other people in case they stumble upon this issue: We heavily discourage this, and except recommend using tauri's dialog api, which will expand the scope automatically for selected files, or use rust to enable specific paths at runtime. |
Beta Was this translation helpful? Give feedback.
-
@FabianLars |
Beta Was this translation helpful? Give feedback.
-
Does the solution still work as of 2024? My allowlist is as follows: ...
"protocol": {
"asset": true,
"assetScope": ["**"]
},
... And when I try to use |
Beta Was this translation helpful? Give feedback.
-
Is there a way to allow access to all the files, with tauri v2 ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to ask for, example ? maybe ? working codes snippet ? (no answer of type add "**" to your tauri config, like where ?? there is milion of settings)
I have hybrid 3D application, created with three js. App is multiplatform Desktop/Web. The app structure is based on "projects" where one folder is one project, with its assets, databases, files (images, videos, point clouds, fbx / glb files,...) One project can have 30 GB.
The projects can be located anywhere on PC, user has structure like:
C:\
Program Files\
ProjectData\
D:\
E:\
Because I use a lot of external libraries, often they works like following
new three.FileLoader("/api/path/file.json")
new GltfLoader().load("/api/models/model.gltf")
So as you can see, I can work only with file paths synchronously (no async await), some libraries use for example folder + they compute file path like new PanoramaLoader().load(".api/pano/"), which hide "chunk1.png" "chunk2.png"...
I need to configure tauri, to be able load this files anywhere. No dialog picking, nothing similar, when user,
just when I write:
GltfLoader().load("D:/Work/MyProject/preview.png")
it has to work.
I know tauri has some security standard, but this is basic workflow which app like Autocad, Autodesk, Blender, Unity, Unreal Engine uses, Visual Studio,... uses, and I want use it.
Beta Was this translation helpful? Give feedback.
All reactions