jkkenzie Posted October 5, 2014 Share Posted October 5, 2014 I am using phalcon framework and am trying to upload a file but hasFiles() returns nothing or false yet there are posted file. if($this->request->hasFiles() == true){ // echo "sdfsf"; exit(); ..... I cant go through that if statement.. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/291458-phalcon-php/ Share on other sites More sharing options...
trq Posted October 5, 2014 Share Posted October 5, 2014 What have you done to debug the code? Link to comment https://forums.phpfreaks.com/topic/291458-phalcon-php/#findComment-1492822 Share on other sites More sharing options...
jkkenzie Posted October 6, 2014 Author Share Posted October 6, 2014 trg: Sorry, i have to apologize that i forgot the enctype="multipart/form-data". I blame too many views (MVC). I did a lot of debugging though.... wasted a whole day, i was woken up early in the morning by the answer to my issue... :-) Link to comment https://forums.phpfreaks.com/topic/291458-phalcon-php/#findComment-1492840 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.