File Name

lawrence whittemore asked on November 6, 2014 16:16

Why is it that when I add a file using the file import it doesn't add hyphens to the document name but when I add them in the tree the file name adds hyphens?

Recent Answers


Martin Danko answered on November 24, 2014 15:27

Hi Lawrence,

could you please be more specific... by the file import you mean when you e.g. upload the file into Media library? It would be also great if you can tell me what is the exact file name. It would be great to provide us with as many details as possible, so we will be able to reproduce this behavior and provide you with a full answer.

Best regards, Martin

0 votesVote for this answer Mark as a Correct answer

lawrence whittemore answered on November 24, 2014 22:05

Sorry, for the lack of info.
In kentico 8 when you click the flower icon at the top left and then type file import it shows the file import module. In here I can select a path to upload files. Let's say I created a folder under the root called documents. If I use the file upload module to upload files to the documents folder I created the files it adds include spaces. For example the file is called "This is a test File.jpg" is added to the tree with the alias "This is a test file"

If I try to add a file to the documents folder I created directly through the tree in the pages module it adds hyphens to the document alias and become "This-is-a-test"

This becomes an issue because now I have to create a way to remove the hyphens when I use a repeater to show the files.

Hope this helps.

0 votesVote for this answer Mark as a Correct answer

Martin Danko answered on November 26, 2014 16:28

Hi Lawrence,

Thank you for pointing this out. I was able to reproduce this behavior and I've already notice our developers about this behavior. I agree with you that it should behave the same way in both cases. Maybe it will be confirmed as a but, so will see.

Best regards, Martin

0 votesVote for this answer Mark as a Correct answer

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