Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I noticed today that when we have characters in urls (spaces, é, à è etc) that these aren't translated as they would be in a page url.
Is there a way to fix this as it breaks all the links that we place to a document in the media section?
Second, in the properties of a media item, we can change it's name, but not it's filename, does this mean we can't change it without uploading it again?
There is a way, but it involves writing your own eventhandler. In the AfterSave event you could detect and rewrite these characters, you can also rename the file on disk.
You wouldn't have to re-upload everything, but you will need to hit save on all of these items.
This really is only a problem when there's an ampersand (&) in the filename, URL's are allowed to have special characters in them, but when there's an ampersand, it looks like a URL parameter of course. You could try doing an umbraco.library:UrlEncode() on the media file, but I don't think I had much luck with that.
Not only the ampersand but ' caracters too.
Indeed when you try to bind a file that contains one in the RTE. It will break the JS script.
I've added a vote on it.On the other side I've written an event handler on Media.AfterSave as Sebastiaan was suggesting and everything is OK now.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted