Welcome Guest, Not a member yet? Register   Sign In
How to upload flv file in codeigniter
#5

[eluser]bluepicaso[/eluser]
m trying hte same but m getting ht error.
Quote:The filetype you are attempting to upload is not allowed.

my code is this
Code:
function upVideo()
    {
         $config['upload_path'] = "images/flickr";
        $config['allowed_types'] = "flv";
        $config['remove_spaces']= TRUE;
        $config['max_size'] = "122880";
        $this->load->library('upload', $config);
        
         if(!($this->upload->do_upload()))
        {//---showing custom error--------
                //echo $this->upload->display_errors();
                $data['response'] =$this->upload->display_errors();
                $data['response_image'] = 'error.png';
                $data['color']='red';
                $data['alt'] = "";
                $data['page'] = 'view_name';
                $this->load->view('ok', $data);
        }
        else
        {
            $finfo = $this->upload->data();
            //echo "<pre>";
            //print_r($value);
            //echo "</pre>";
            
            //--------the variable save the thumb file value for future use------------
            
            //echo $thumbnail."<br>";
            //echo $imagepath;
            
            //
            //echo "<pre>";
            //print_r($data);
            //echo "</pre>";
                $data['response'] ="image uploaded successfully";
                $data['response_image'] = 'error.png';
                $data['color']='red';
                $data['alt'] = "";
                $data['page'] = 'view_name';
                $this->load->view('ok', $data);
                
        }
    }

i have also included flv ion mimes
but its doesnt work


Messages In This Thread
How to upload flv file in codeigniter - by El Forum - 06-04-2009, 03:30 AM
How to upload flv file in codeigniter - by El Forum - 06-04-2009, 03:36 AM
How to upload flv file in codeigniter - by El Forum - 06-04-2009, 03:46 AM
How to upload flv file in codeigniter - by El Forum - 06-04-2009, 06:49 AM
How to upload flv file in codeigniter - by El Forum - 11-04-2009, 02:21 AM
How to upload flv file in codeigniter - by El Forum - 11-04-2009, 02:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB