Next topic

This Page

<?phpusePhalcon\Mvc\Controller;classPostsControllerextendsController{publicfunctionuploadAction(){// Check if the user has uploaded filesif($this->request->hasFiles()==true){// Print the real file names and their sizesforeach($this->request->getUploadedFiles()as$file){echo$file->getName()," ",$file->getSize(),"\n";}}}}