Added check for file type in admin notices, #463