Sanitize file upload for background option.