diff --git a/src/header.rs b/src/header.rs index 2f031c9..542fa7d 100644 --- a/src/header.rs +++ b/src/header.rs @@ -42,6 +42,7 @@ impl ContentDisposition { .find(|param| param.is_filename()) .map(|param| param.as_filename()) .flatten() + .filter(|file_name| !file_name.is_empty()) .ok_or_else(|| error::ErrorBadRequest("file data not present")) } }