Bugfix to ensure all valid file types are uploaded.