framework
framework copied to clipboard
[bug] Input::HasFile returns true when no file upload happened
According to the docs, Input::HasFile() should return true when a file is uploaded. Currently, it also returns true when no file is uploaded.
if (Input::hasFile('image'))
{
var_dump(Input::hasFile('image'));
var_dump(Input::file('image'));
}
displays:
boolean true
null
It only returns false when the input element is not in the form.
Thanks, will get it fixed.
Fixed.