[eluser]patwork[/eluser]
This patch is driving me crazy. What was the point in changing filename override?
Let's suppose, I'm allowing three filetypes:
Code:
$upload_config['allowed_types'] = 'gif|jpg|png';
But, I want to ovverride filename, for example:
Code:
$upload_config['file_name'] = 'my_filename_'.time();
That was ok before patch. User upload PNG - I get "my_filename_xxx.PNG", user upload JPG, I get "my_filename_xxx.JPG", and so on. How it's better now, when I'm forced to check what extension uploaded file has, before I set $upload_config['file_name']?
How can I force new Upload library to add proper extension to my (base) filename?