Fixed the ability to upload non-image files.