I am using ant design to upload csv with this form input:
ce(Form.Item, { className: 'form_input' },
ce(Upload, { onChange: handleFileChange, className:'csv', multiple: false },
ce(Button, { type: 'ghost' },
ce(Icon, { type: 'upload' }), ' Choose File',
)
),
)
The form allows multiple uploads and the new uploads get appended to "ant-upload-list-item". How can I prevent the append and only keep the latest item in there?