ignore file processing if no_file_upload is true
This commit is contained in:
parent
e17b26994f
commit
fc3998243b
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue