Welcome Guest, Not a member yet? Register   Sign In
File Upload Library and special characters

(This post was last modified: 11-24-2018, 03:42 AM by marwin.)

OK so i did a quick extension to change the name - that works:

return filename.replace('(', '_').replace(']', '_').replace('ä', 'ae').replace('ü', 'ue').replace('ö', 'oe').toLowerCase();

-> filename special characters are replaced and file is stored with the correct name. Before I extend this to cover the remaining characters, I ran in the next problem: now the file remains in the tmp-upload and is no longer moved to the proper folder. not even the ones that were moved before. That part I dont understand.


I think I tempered at the wrong location. The problem seems to actually be with the \system\libraries\upload.php where the filename should be sanitised further. Is there a config setting to limit the permissable characters?

Messages In This Thread
RE: File Upload Library and special characters - by marwin - 11-24-2018, 02:43 AM

Theme © iAndrew 2016 - Forum software by © MyBB