Browse Source

fix: fix warning of transformFile prop for upload (#28455)

pull/28456/head
YanYuan 4 years ago
committed by GitHub
parent
commit
0721ef3cfb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/upload/Upload.tsx

2
components/upload/Upload.tsx

@ -65,7 +65,7 @@ const InternalUpload: React.ForwardRefRenderFunction<unknown, UploadProps> = (pr
);
devWarning(
'transformFile' in props,
!('transformFile' in props),
'Upload',
'`transformFile` is deprecated. Please use `beforeUpload` directly.',
);

Loading…
Cancel
Save