Skip to content

Commit f3a1093

Browse files
committed
Fix #52: Don't send DELETE request from Clear button
Clear button is for clearing the file input, not for deleting files.
1 parent 6500363 commit f3a1093

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/components/uploader.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ export default class FileUploader extends React.Component {
119119
}
120120
};
121121

122-
this.sendDeleteRequest([this.props.value], 'clear_button');
123-
124122
this.props.onChange(event);
125123
}
126124
}

0 commit comments

Comments
 (0)