mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19893: Removing the limitation of unknown mime types for importing media
Work Item: 19893 --HG-- branch : 1.x extra : rebase_source : 45662b8bb6150c7b7fb25cfd46cdacebd581930b
This commit is contained in:
@@ -70,8 +70,7 @@ namespace Upgrade.Controllers {
|
||||
|
||||
foreach (var extension in extensions) {
|
||||
if (_mimeTypeProvider.GetMimeType("." + extension) == "application/unknown") {
|
||||
_orchardServices.Notifier.Warning(T("Unknown MIME type: {0}", extension));
|
||||
ViewBag.CanMigrate = false;
|
||||
_orchardServices.Notifier.Warning(T("Unknown MIME type for extension: {0}. These files will be imported as Document media.", extension));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user