mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 03:17:32 +08:00
Storing local paths when possible in media
--HG-- branch : 1.x
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user