Attachment File Rename

Maksym Stepanenko asked on February 22, 2015 10:37

Hi, I noticed that kentico replaces some symbols in attachment file names on upload (e.g. double file extension or white space).

Currently I'm writing a custom method which need's to compare kentico uploaded attachment with a file on a separate storage. The problem is - on the storage the file has the original name and I have only the one from Kentico( with the replacement).

Can you please provide the Regex which is used to rename files so I could use it ?


Recent Answers

Martin Danko answered on March 2, 2015 04:09

Hello Maksym,

I will send you the code but it's more complex, so please write us an email to

In your email refer to this Question from DevNet portal and address it directly to me.

Regards, Martin

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.