fix #23
This commit is contained in:
parent
aae05764f5
commit
080498d80c
|
@ -95,7 +95,7 @@ impl UploadFormData {
|
||||||
if val.is_checked() {
|
if val.is_checked() {
|
||||||
let name = data.get("filename")?;
|
let name = data.get("filename")?;
|
||||||
out.filename = Some(name.as_atr_or_none()?);
|
out.filename = Some(name.as_atr_or_none()?);
|
||||||
out.lookup_kind = LookupKind::ByHash
|
out.lookup_kind = LookupKind::ByName
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
None => ()
|
None => ()
|
||||||
|
@ -107,7 +107,6 @@ impl UploadFormData {
|
||||||
if val.is_checked() {
|
if val.is_checked() {
|
||||||
let pass = data.get("password")?;
|
let pass = data.get("password")?;
|
||||||
out.password = Some(pass.as_atr_or_none()?);
|
out.password = Some(pass.as_atr_or_none()?);
|
||||||
out.lookup_kind = LookupKind::ByName
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
None => ()
|
None => ()
|
||||||
|
|
Loading…
Reference in New Issue