feat: changed zipped file names and disabled download file names

This commit is contained in:
alphafetus committed 2026-04-10 13:44:54 -04:00
1 parent 5cda2f8070
commit 2b255ce968
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -346,8 +346,9 @@ pub async fn get_student_files(
debug_log!("Writing {} files to zip file...", results.len());
for (key, file_bytes) in results {
let file_name = key.split('/').last().unwrap_or_default();
writer
.start_file(key.clone(), SimpleFileOptions::default())
.start_file(file_name, SimpleFileOptions::default())
.map_err(ServerFnError::new)?;
writer.write_all(&file_bytes).map_err(ServerFnError::new)?;
}
+1 -1
View File
@@ -678,7 +678,7 @@ fn StudentInformationDialog(
.dyn_into()
.unwrap();
a.set_download("testing.zip");
a.set_download("");
a.set_href(&data_url);
document().body().unwrap().append_child(&a).unwrap();
a.click();