I’m experiencing a problem with the changing the file name within the upload config array. My code is as follows;
The upload function works fine. The $conifg array contains the right file name
./uploads/ [allowed_types] => csv [file_name] => test.csv [overwrite] => [remove_spaces] => 1 )
Checking the uploaded data I get the following:
[file_name] => csvTest.csv
[file_type] => text/tsv
[raw_name] => csvTest
[orig_name] => csvTest.csv
[file_ext] => .csv
The file name does not change. The file gets uploaded with its original name.
Any help discovering why this is occurring would be greatly appreciated.