Serve static files for remote access #4998
|
Is it possible to get the assets directory to upload files to it and serve like static files using I asked this on plugin repo but no answers yet |
Replies: 2 comments
There is no asset directory, all the files are stored as binary data inside the executable. So for serving custom files you need to spin up your own localhost server. (You could combine this with serving the bundled assets by using the asset resolver you mentioned inside that new server) |
|
I was able to achieve this* 🤩 Three commits that got me there:
While serving * - note - the setup I have is for Tauri to serve static files that I include when building the application (they live inside the executable), not for serving static files dynamically from somewhere else 🤝 |
There is no asset directory, all the files are stored as binary data inside the executable. So for serving custom files you need to spin up your own localhost server. (You could combine this with serving the bundled assets by using the asset resolver you mentioned inside that new server)