[eluser]Unknown[/eluser]
I tried to upload an MP3 with an ampersand in the file name (04 - Home & Minor.mp3), but the CI File Uploading class seems to be having some trouble with said file.
I've got remove_spaces and encrypt_name set to TRUE, but it doesn't alter the file name nor write the file to the file_path. It also doesn't seem as if clean_file_name in CI_Upload is doing anything either.
Here's the upload data returned for said file:
Code:
Array
(
[file_name] => 04 - Home & Minor.mp3
[file_type] => audio/mpeg
[file_path] => /public/upload/releases/tracks/
[full_path] => /public/upload/releases/tracks/04 - Home & Minor.mp3
[raw_name] => 04 - Home & Minor
[orig_name] =>
[file_ext] => .mp3
[file_size] => 14822.52
[is_image] =>
[image_width] =>
[image_height] =>
[image_type] =>
[image_size_str] =>
)
Here's the upload data for a file that's working (05 - Didnealand.mp3):
Code:
Array
(
[file_name] => caf3adfcf705368347e5d6710cb2fd8e.mp3
[file_type] => audio/mpeg
[file_path] => /public/upload/releases/tracks/
[full_path] => /public/upload/releases/tracks/caf3adfcf705368347e5d6710cb2fd8e.mp3
[raw_name] => caf3adfcf705368347e5d6710cb2fd8e
[orig_name] => 05_-_Didnealand.mp3
[file_ext] => .mp3
[file_size] => 5406.17
[is_image] =>
[image_width] =>
[image_height] =>
[image_type] =>
[image_size_str] =>
)
Is this a bug or am I missing something?