File Upload - dots in document name automatically converted to "-"

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
servgas
User
Posts: 55

File Upload - dots in document name automatically converted to "-"

Post by servgas »

hi,

Please I realized, when i upload a document with the name test.doc1-25.doc it is renamed to test-doc1-25.doc means that the . character is replaced by the character -

is it possible to avoid this?

thank you


arbei
User
Posts: 9862

Post by arbei »

PHPMaker uses jQuery File Upload, which uses a PHP upload handler, there is a setting:
'replace_dots_in_filenames' => '-',

You may override it by, e.g. in Global Code
FileUploadHandler::$options["replace_dots_in_filenames"] = "";


Post Reply