How to keep the last selected file when deselecting <input type="file">
天蓬老师2017-07-05 11:08:02
0
2
1930
After selecting the file for the first time, click the button again. After the dialog box pops up, you do not select the file but choose to cancel. The file selected for the first time is gone. . . Showing no files selected
If you have special needs, you can use a temporary variable to save the value of the last operation, for example, after the file selection event is triggered
Try this https://stackoverflow.com/que...
If you have special needs, you can use a temporary variable to save the value of the last operation, for example, after the file selection event is triggered