3 ms·
Sorry that misses my point, blazor runs client side which means that it’s sandboxed with the same permissions as JavaScript executed within a page - you can’t u
by hsbauauvhabzb 3y ago
Sorry that misses my point, blazor runs client side which means that it’s sandboxed with the same permissions as JavaScript executed within a page - you can’t use blazor to read a file client-side, but there’s nothing to prevent wrapping what would be a server side library in a way where ‘it executes on the client except when it can’t, at which point it executes on the server’
Doing so would almost always be a security risk, as validation would presumably still run client side, but that doesn’t mean it’s not possible to actually achieve such an engine.
- cyanydeez 3y agoLike most wasm, if the nugget is just a thin wrapper around a recompiled binary, it's not going to work. WASM is a compile target. So if the code source is available and it's "pure", most wasm can now compile it. Check out pyiodide for a extensive python project trying to bring everything in Python to the web. Your specific concern regarding file access: they just create something like a indexeddb file system if you want to work with files.