hi,
I install new version 2.0.2 on local xampp, but in upload file and request->hasFiles() line always return true(1), i test it again with version of 1.3.3 but it's Ok.
I think it's a bug in core class....
Can you please sumbit html code to test?
@meyssamhf, try this:
$this->request->hasFiles(true);
yes. it's work...... thanks aleksandrzen
and Where did you find it?
@meyssamhf
I was faced with the same problem, after migration 1.2.6 -> 2.0.2.
I found this issue and concluded, that developers change default argument in Phalcon\Http\Request::hasFiles($notErrored).
This is only suggestion, I've not looked into sources.
1.2.6
/**
* Checks whether request includes attached files
*
* @return boolean
*/
public function hasFiles($notErrored=null){ }
Most helpful comment
@meyssamhf, try this: