{"action":"closed","issue":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4344","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4344/labels{/name}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4344/comments","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4344/events","html_url":"https://github.com/bcit-ci/CodeIgniter/issues/4344","id":124197554,"number":4344,"title":"Check file name before upload","user":{"login":"circuitmamu","id":14886847,"avatar_url":"https://avatars.githubusercontent.com/u/14886847?v=3","gravatar_id":"","url":"https://api.github.com/users/circuitmamu","html_url":"https://github.com/circuitmamu","followers_url":"https://api.github.com/users/circuitmamu/followers","following_url":"https://api.github.com/users/circuitmamu/following{/other_user}","gists_url":"https://api.github.com/users/circuitmamu/gists{/gist_id}","starred_url":"https://api.github.com/users/circuitmamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/circuitmamu/subscriptions","organizations_url":"https://api.github.com/users/circuitmamu/orgs","repos_url":"https://api.github.com/users/circuitmamu/repos","events_url":"https://api.github.com/users/circuitmamu/events{/privacy}","received_events_url":"https://api.github.com/users/circuitmamu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-29T11:26:14Z","updated_at":"2015-12-30T19:52:38Z","closed_at":"2015-12-30T19:52:38Z","body":"My permitted url characters set in config is as per below\r\n$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\\-';\r\n\r\nSo when I upload the file via up-loader \r\n$config['file_name'] = $filedetails['filename']['name'];\r\n$this->upload->initialize($config);\r\n\r\nSo I want to check that if file name has a permitted characters or not if not then is any function to change non permit-able characters to any allowed characters\r\n\r\nAs Example\r\nFile Name : example-file-name#7.jpg\r\nIn this example # and - is special characters but # is not allowed so before upload or copy the file to server I just want to change whatever non acceptable characters to my allowed character\r\n\r\nIf I change those characters from # to _ that is not acceptable\r\nNew File : example-file-name_7.jpg\r\n\r\nIs those function is available then please let me know via quick reply"}}