#U4-3154 Fixed Deleting single media item in recycle bin does not use the FileSystemProvider

This commit is contained in:
Sebastiaan Janssen
2014-06-27 16:26:22 +02:00
parent 966a29954c
commit c53d812742

View File

@@ -369,7 +369,7 @@ namespace Umbraco.Core.Persistence.Repositories
{
if (property.PropertyType.PropertyEditorAlias == Constants.PropertyEditors.UploadFieldAlias &&
string.IsNullOrEmpty(property.Value.ToString()) == false
&& fs.FileExists(IOHelper.MapPath(property.Value.ToString())))
&& fs.FileExists(fs.GetRelativePath(property.Value.ToString())))
{
var relativeFilePath = fs.GetRelativePath(property.Value.ToString());
var parentDirectory = System.IO.Path.GetDirectoryName(relativeFilePath);