Welcome Guest, Not a member yet? Register   Sign In
File upload error
#1

(This post was last modified: 05-22-2021, 04:08 AM by pippuccio76.)

hi , i have an error with file upload :

The original file is not a valid file


when i leave empty the file field


this is my code : 
PHP Code:
                //recupero le informazioni del file
                $img $this->request->getFile('immagine');



                if($img){

                    //lo trasferisco nella cartella uploads
                    if($img->move(FCPATH '/uploades/images/foto_mezzi')){

                
                        $post
['immagine'] = $img->getName(); 

                            $res$mezzi_model->save($post); 
Reply


Messages In This Thread
File upload error - by pippuccio76 - 05-22-2021, 04:07 AM
RE: File upload error - by rolly - 05-26-2021, 11:53 PM
RE: File upload error - by InsiteFX - 05-27-2021, 01:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB