#How does tauri handle file types?
4 messages · Page 1 of 1 (latest)
Does the file input give your JS code the path? If so, that's what you'd send to Rust (and on the Rust side it may want to be PathBuf).
JS returns a file, that is a blob. I'm using something like this
<input type="file" accept=".pdf" required/>
Yeah, then you have to send the bytes directly. We can't get the filesystem path from that input in tauri.