Welcome Guest, Not a member yet? Register   Sign In
adding flv mimes disables the format filter
#1

[eluser]Unknown[/eluser]
1.At first the flv upload is not allowed.
2.So i added the mime type.

the entry i added in mime
Code:
'flv'    => array('video/flv', 'video/x-flv', 'flv-application/octet-stream', 'application/octet-stream'),

3.This actually started uploading flv..but all the other file formats where also being uploaded no matter what the file is.

this is part of the code
Code:
upload code:
function upload_process()
    {
        
        //upload settings
        $config['upload_path'] = './videos/';
        $config['allowed_types'] = 'flv';
        $config['max_size']    = '200000';
        $config['encrypt_name']  = TRUE;
        $this->load->library('upload', $config);
        
        if ( ! $this->upload->do_upload())
        {
            $error = array('error' => $this->upload->display_errors());
            print_r($error);
        }    
        else
        {            
    ///after codes            
        }


Messages In This Thread
adding flv mimes disables the format filter - by El Forum - 01-08-2009, 01:50 PM
adding flv mimes disables the format filter - by El Forum - 02-13-2009, 06:14 PM
adding flv mimes disables the format filter - by El Forum - 04-03-2009, 12:38 AM
adding flv mimes disables the format filter - by El Forum - 04-04-2009, 05:11 PM
adding flv mimes disables the format filter - by El Forum - 04-04-2009, 05:26 PM
adding flv mimes disables the format filter - by El Forum - 04-05-2009, 10:11 AM
adding flv mimes disables the format filter - by El Forum - 09-16-2009, 09:41 AM
adding flv mimes disables the format filter - by El Forum - 11-26-2009, 10:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB