You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All that "normalizeFilename" do is: "Sanitize file/folder name, replaces gaps and some other special chars" (original filename), nothing more. At the moment there are only two possible behaviors:
Overwriting existing file if the one exists with the same name (see "overwrite" option in the config file)
Creating new file with a name supplemented by the postfix: "test.png" turns to "test (1).png"
No capability to fire error message implemented, I could change the format of the postfix though. However what the problem do you have with " (N)" postfix?
The main problem with " (N)" postfix in my case is, I will further publish the asset to elsewhere via SFTP (phpseclib), which cannot correctly recognize filename with some special characters.
Anyway I have figured out the solution by editing upcount_name_callback() in your /connectors/php/BaseUploadHandler.php file.
I would also prefer not to have spaces and parentheses inserted into a file name. It makes is more difficult to use a command-line shell with TAB-completion.
Config files (both JS and PHP connector) already has "normalizeFilename = true".
Can reproduce issue as follow:
Please advise whether I can configure this naming logic by changing any file / config.
Thanks very much.
The text was updated successfully, but these errors were encountered: