mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixed recipe file model validation.
This commit is contained in:
@@ -51,7 +51,7 @@ namespace Orchard.ImportExport.Providers.ImportActions {
|
||||
File = request.Files["RecipeFile"];
|
||||
ResetSite = viewModel.ResetSite;
|
||||
|
||||
if (File == null)
|
||||
if (File == null || File.ContentLength == 0)
|
||||
updater.AddModelError("RecipeFile", T("No recipe file selected."));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user