ignore file processing if no_file_upload is true

This commit is contained in:
Hayden 2022-09-30 22:11:03 -08:00
parent e17b26994f
commit fc3998243b

View file

@ -106,6 +106,10 @@ pub async fn create(
continue; continue;
} }
"file" => { "file" => {
if ARGS.no_file_upload {
continue;
}
let path = field.content_disposition().get_filename(); let path = field.content_disposition().get_filename();
let path = match path { let path = match path {