• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to upload flv file in codeigniter

I am unable to upload flv file in codeigniter.Please provide the solution for uploading flv file.Its very urgent for me.

What have you tried so far, and how does it fail? Error, blank screen?

You might face problems uploading big data through php itself. By default, a php-script won't run longer than 30 seconds. You might need to work with a java-applet which would open a ftp-connection to your server or something similar. With php alone, you won't become happy dealing with big files.

The user guide is very good and comprehensive on this - and in general.

A quick checklist for troubleshooting:
Is your target directory writeable?
$config['upload_path'] = '/where/you/store/uploads/';

Is flv one the allowed filetypes?
$config['allowed_types'] = 'flv'

Is the file too big?
If you didn't set
it will default to the value in your php.ini

If none of the above work give us some more details on what is happening....

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

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

i have also included flv ion mimes
but its doesnt work

go it!!!!

In mimes, instead of
'flv' => 'video/x-flv'

'flv' => 'video/flv'
thats is

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.