mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
Bug #17337: Wrong prompt "New file name <MediaFolderName> is not allowed" when rename uploaded media name.(e13a33b2f7fb)
--HG-- branch : dev
This commit is contained in:
@@ -281,7 +281,7 @@ namespace Orchard.Media.Controllers {
|
||||
|
||||
// Rename
|
||||
if (!String.Equals(viewModel.Name, input["NewName"], StringComparison.OrdinalIgnoreCase)) {
|
||||
_mediaService.RenameFile(viewModel.Name, input["NewName"], viewModel.MediaPath);
|
||||
_mediaService.RenameFile(viewModel.MediaPath, viewModel.Name, input["NewName"]);
|
||||
viewModelName = input["NewName"];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user