Using the opencart image manager how would I set the upload to automatically remove: spaces and un-safe characters from the image filename?
Filemanager.php
$filename = basename(html_entity_decode($this->request->files['image']['name'], ENT_QUOTES, 'UTF-8'));
The best way would be to use a simple preg_replace such as
That will allow letters, numbers, underscore, back and forward slashes and a . in the filename only, and strip out anything else