(id)
| 99 | } |
| 100 | |
| 101 | removeFile (id) { |
| 102 | if (this.props.disabled || this.props.readOnly) { |
| 103 | return; |
| 104 | } |
| 105 | |
| 106 | let files = this.state.files; |
| 107 | let file = files[id]; |
| 108 | if (file.xhr) { |
| 109 | file.xhr.abort(); |
| 110 | } |
| 111 | delete files[id]; |
| 112 | this.setState({ files }); |
| 113 | this.handleChange(); |
| 114 | } |
| 115 | |
| 116 | uploadFile (file, id) { |
| 117 | let { onUpload } = this.props; |
nothing calls this directly
no test coverage detected