adds some logging

This commit is contained in:
Shannon
2014-04-16 15:38:16 +10:00
parent f69527eac1
commit a3a0f1a0bf

View File

@@ -430,6 +430,10 @@ namespace Umbraco.Web.Editors
mediaService.Save(f);
}
else
{
LogHelper.Warn<MediaController>("Cannot upload file " + file + ", it is not an approved file type");
}
//now we can remove the temp file
System.IO.File.Delete(file.LocalFileName);