fixed bug

This commit is contained in:
Danny Zou 2024-05-16 20:58:27 -04:00
parent caefc46fcc
commit 4958d3a881

View File

@ -149,8 +149,6 @@ pub async fn upload(data: MultipartData) -> Result<(), ServerFnError> {
while let Ok(Some(mut field)) = data.next_field().await { while let Ok(Some(mut field)) = data.next_field().await {
let name = field.name().unwrap_or_default().to_string(); let name = field.name().unwrap_or_default().to_string();
println!("Field name: {}", name);
match name.as_str() { match name.as_str() {
"title" => { title = Some(extract_field(field).await?); }, "title" => { title = Some(extract_field(field).await?); },
"artist_ids" => { artist_ids = Some(validate_artist_ids(field).await?); }, "artist_ids" => { artist_ids = Some(validate_artist_ids(field).await?); },