[eluser]Unknown[/eluser]
Hi everyone,
I've been trying to upload an MP3 file using the CI's file upload class, but I keep getting the following error; "The filetype you are attempting to upload is not allowed.".
The relevant config information is:
Code:
$config = array();
$config['upload_path'] = 'application/audio';
$config['allowed_types'] = 'mp3';
And the file information is:
Code:
Array
(
[file_name] => 16_Track 16.mp3
[file_type] => audio/mpeg
[file_path] => /home/blazing/public_html/application/audio/
[full_path] => /home/blazing/public_html/application/audio/16_Track 16.mp3
[raw_name] => 16_Track 16
[orig_name] =>
[file_ext] => .mp3
[file_size] => 66
[is_image] =>
[image_width] =>
[image_height] =>
[image_type] =>
[image_size_str] =>
)
I've tried also writing the actual mime types (audio/mpeg, audio/x-mpeg, audio/mp3, audio/x-mp3, audio/mpeg3, audio/x-mpeg3, audio/mpg, audio/x-mpg, audio/x-mpegaudio) on the "allowed_types" but nothing seems to work.
If someone went through this before, or knows a solution please let me know. I'd really appreciate any help.
Thanks in advance.