Fixed minor logic bug that was allowing incorrect file types to be uploaded.