Cphalcon: bug on the request->hasFiles() in version 2.0.1 and 2.0.2

Created on 4 Jun 2015  路  4Comments  路  Source: phalcon/cphalcon

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....

Most helpful comment

@meyssamhf, try this:

$this->request->hasFiles(true);

All 4 comments

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){ }
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Yakovlev-Melarn picture Yakovlev-Melarn  路  3Comments

mynameisbogdan picture mynameisbogdan  路  3Comments

richmilns picture richmilns  路  3Comments

EquaI1ty picture EquaI1ty  路  3Comments

bestirani2 picture bestirani2  路  3Comments