tsk-54: Removed hard coded filename

This commit is contained in:
2025-10-22 13:45:19 -04:00
parent bd351b1157
commit 1818faac87

View File

@@ -199,11 +199,10 @@ pub mod update_queued_song {
println!("Queued song path: {:?}", queued_song.path); println!("Queued song path: {:?}", queued_song.path);
// TODO: Make the filename random
let form = reqwest::multipart::Form::new().part( let form = reqwest::multipart::Form::new().part(
"file", "file",
reqwest::multipart::Part::bytes(std::fs::read(&queued_song.path).unwrap()) reqwest::multipart::Part::bytes(std::fs::read(&queued_song.path).unwrap())
.file_name("track01.flac"), .file_name(queued_song.song.filename.clone()),
); );
let url = format!("{}/api/v2/song/queue/{}", app.uri, queued_song.id); let url = format!("{}/api/v2/song/queue/{}", app.uri, queued_song.id);