Upload vidéo avec codeigniter

Fermé
kimyoo Messages postés 36 Date d'inscription lundi 29 juin 2015 Statut Membre Dernière intervention 6 octobre 2015 - 4 sept. 2015 à 10:33
kimyoo Messages postés 36 Date d'inscription lundi 29 juin 2015 Statut Membre Dernière intervention 6 octobre 2015 - 4 sept. 2015 à 12:18
Bonjour ,

je suis entrain d'ajouter à mon site web la fonctionnalité d'upload vidéo avec codeignter mais ça ne marche plus avec moi il m'affiche cette erreur :

You did not select a file to upload.

c'est mon code aidez moi svp!

mon controlleur:
//uploadvid
                         $conf['upload_path'] = 'media/produits/video';
                         $conf['file_name'] = uniqid();
                         $conf['allowed_types'] = 'avi|flv|wmv|mpeg|mp3|mp4';
                         $conf['max_size'] = 500000000;
                         $this->load->library('upload', $conf);
                         $this->upload->do_upload('video');
 
                        
                          $d = array('upload_data' => $this->upload->data());
                                $video=$d['upload_data']['file_name'];
 
                          
                        if (!$this->upload->do_upload()){
             
                        $error = array('error' => $this->upload->display_errors());
                        //debuger($error);
             
                        }

c'est mon view:
<div class="control-group">
                                          <label class="control-label" for="fileInput">Vidéo<span class="required">*</span></label>
                                          <div class="controls">
                                           
                                            <input class="input-file uniform_on"  type="file"   name="video">
                                            
 
                                          </div>
                                        </div>

c'est mimes.php:
'mp4'   => array('video/mp4', 'video/quicktime'),
'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
'mpeg' => 'video/mpeg',


Merci !
A voir également:

1 réponse

kimyoo Messages postés 36 Date d'inscription lundi 29 juin 2015 Statut Membre Dernière intervention 6 octobre 2015
4 sept. 2015 à 12:18
besoin de vous aide svp!
0