Hi,
Since the latest update I get error message [illegal characters in path] where I try to rename a file to a name which contains a space.
I am sure this was always allowed till now. Of course our CMS customers have thousands of assets containing spaces which cannot be renamed right now, so this is a very serious issue. Please see attached screenshots.
Marc
6 Answers, 1 is accepted
Thank you for bringing this issue to us. I have logged it with highest priority and we will fix it as soon as possible. For the time being you can fix this behavior by adding the following workaround to he page containing FileExplorer:
<script>
var
$ = $telerik.$;
Telerik.Web.UI.RadFileExplorer.prototype._shouldPreventRename =
function
(newName) {
var
invalidChars =
this
._getInvalidCharsToString().replace(/ /g,
''
);
for
(
var
i = 0; i < invalidChars.length; i++) {
if
($telerik.$.inArray(invalidChars[i], newName) > -1) {
return
true
;
}
}
return
false
;
}
</script>
I have also upgraded your Telerik point as a small token of gratitude for the reported issue.
Regards,
Vessy
Telerik
Hi,
With the latest update I get a new error here, see attached.
As this is in our CMS can you give this prio? I must say I find it very unusual from Telerik to get error on error in new releases...
Marc
Hi,
I discovered that this is an issue with writing to a folder in a virtual directory. There were not the proper right set. So I think I owe you an apology for my reaction. Maybe the error message that occured could be some more explainable.
Marc
Thank you for the update - I am glad you managed to find the solution of the problem. I will pass your suggestion for making the thrown error message more descriptive for a further consideration.
Regards,
Vessy
Telerik
Good morning,
I continue to have problems renaming new directory or renaming files because File Explorer allow the users to rename with a final SPACE.
These directory or files with name containing a final space generate errors and prevent you from browsing the contents of the directory.
Thanks
Good morning!
I tried to reproduce the reported folder renaming problem with the latest version in the live demos but without success.
I renamed a folder name by placing a space at the end but the renaming did not happen. There is now a check in the source code that trims the space:
_shouldPreventRename: function (newName) {
var invalidChars = this._getInvalidCharsToString().trim();
for (var i = 0; i < invalidChars.length; i++) {
if ($.inArray(invalidChars[i], newName) > -1) {
return true;
}
}
return false;
}
For your convenience, I recorded and attached my test. Can you please see it and let me know what I am missing to repro the problem? Please provide step-by-step instructions with screenshots or a video so that I can replicate the renaming issue. Thank you!