#convertFileSrc() vs local axum server in a tauri app

2 messages · Page 1 of 1 (latest)

calm lion
#

Hey everyone! I'm building a Tauri app and trying to figure out the best approach for handling local files. I'm currently evaluating two options:

Using Tauri's built-in convertFileSrc() to create asset URLs

Setting up a local Axum server to serve files

Current Understanding:

convertFileSrc() seems simpler to implement, but I'm wondering about its limitations. The Axum approach feels more flexible but might be overkill.

Would love to hear from people who have experience with either (or both) approaches. What did you choose and why?

tidal pilot
#

convertFileSrc has an issue with playing audio and video on Linux, if that's not relevant i don't see a reason to not use it. Unless of course you also want to generate "files" dynamically, then using axum (or your own custom protocol) makes sense.