CakePHP-FileUpload-Plugin icon indicating copy to clipboard operation
CakePHP-FileUpload-Plugin copied to clipboard

Invalid argument foreach

Open kibm opened this issue 12 years ago • 0 comments

When trying to upload a file i get the following error:

Warning (2): Invalid argument supplied for foreach() [APP/Plugin/file_upload/Controller/Component/FileUploadComponent.php, line 341]

The lines are:

function processAllFiles(){ foreach($this->uploadedFiles as $file){ $this->_setCurrentFile($file); $this->Uploader->file = $this->options['fileModel'] ? $file[$this->options['fileVar']] : $file; $this->processFile(); } }

How to i solve this? Thanks.

kibm avatar Feb 01 '13 14:02 kibm