ActionDispatch::Http::UploadedFile is a permitted scalar [Closes #9051]