mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
Fixing upload from client to new folder in mediaservice.
--HG-- branch : dev
This commit is contained in:
@@ -222,7 +222,7 @@ namespace Orchard.Media.Controllers {
|
|||||||
}
|
}
|
||||||
catch //media api needs a little work, like everything else of course ;) <- ;) == my stuff included. to clarify I need a way to know if the path exists or have UploadMediaFile create paths as necessary but there isn't the time to hook that up in the near future
|
catch //media api needs a little work, like everything else of course ;) <- ;) == my stuff included. to clarify I need a way to know if the path exists or have UploadMediaFile create paths as necessary but there isn't the time to hook that up in the near future
|
||||||
{
|
{
|
||||||
_mediaService.CreateFolder(viewModel.MediaPath, "");
|
_mediaService.CreateFolder("", viewModel.MediaPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
var file = Request.Files[0];
|
var file = Request.Files[0];
|
||||||
|
Reference in New Issue
Block a user