Welcome Guest, Not a member yet? Register   Sign In
WOW SO ANNOYING!
#1

[eluser]deadzebra[/eluser]
oh my word this is so annoying...im using the codeigniter file upload library and i pass in $config['allowed_types'] = '3gp|video/3gpp'; then i try upload the file and it gives me an error "The filetype you are attempting to upload is not allowed."...i then do this
Code:
$array = $this->upload->data();
print_r($array);

i look at what the array has inside and there it is [file_type] => video/3gpp , [file_ext] => .3gp ... i have set php to accept files up to 10megs and ive set the library to accept files up to 10megs the file is 6megs and i have already tested uploading other files (jpegs etc etc) up to 8megs++ and they work fine ???? could someone please let me know if this is a bug in codeigniter or am i just being noob again...please help me out uploading is the core functionality of what im trying to build
#2

[eluser]deadzebra[/eluser]
should i be editing /application/config/mimes.php ?
#3

[eluser]danmontgomery[/eluser]
Yep, you need to add 3gp to mimes.php,

Code:
'3gp'    =>    'video/3gpp',




Theme © iAndrew 2016 - Forum software by © MyBB