Storing local paths when possible in media

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2013-04-19 17:39:23 -07:00
parent 68cf505426
commit eb4c452003
5 changed files with 28 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ namespace Orchard.MediaLibrary.Factories {
_storageProvider.CreateFolder(BaseFolder);
}
part.Resource = _storageProvider.GetPublicUrl(_storageProvider.Combine(BaseFolder, uniquePath));
part.Resource = _storageProvider.GetRelativePath(_storageProvider.Combine(BaseFolder, uniquePath));
part.MimeType = mimeType;
part.Title = Path.GetFileNameWithoutExtension(path);