pub fn publish_spectrum( folder: &Path, reference: &str, bytes: &[u8], ) -> Result<PathBuf, String>
Save only server-selected spectrum bytes; the webview cannot choose a filename or path.