Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想获取要删除的文件Filepond。但是,当我使用时onremovefile={(file) => this.handleRemove(file)},file返回到null. 我究竟做错了什么?
Filepond
onremovefile={(file) => this.handleRemove(file)}
file
null
找到了解决方案!第一个参数是可能的错误响应,第二个参数是文件项。因此它实际上是onremovefile={(errRes, file) => this.handleRemove(errRes, file)}
onremovefile={(errRes, file) => this.handleRemove(errRes, file)}