Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove uploaded list to display in antd Upload?

I am using upload component in my chat application to allow user to upload their picture in chat room. But after uploading the picture the name of file display in bottom and i want to disappear it but i couldn't. It has a showUploadList attribute but when i set it false, it doesn't work.

 <Upload
   action={`${url}api/v1/chat/messages/${chatID}`}
   name="billig"
   headers={{ Authorization: `Token ${token}` }}
   onChange={this.onChange}
   fileList={this.state.fileList}
   multiple="true"
   accept=".png,.jpeg"
   showUploadList="false">

picture1 : before upload picture2 : after upload

like image 800
Mositafan Avatar asked Oct 19 '25 14:10

Mositafan


1 Answers

Use

showUploadList={false}

instead of

showUploadList="false"

like image 184
user15503802 Avatar answered Oct 22 '25 07:10

user15503802