lgommans / dro.pm

Drop links, text and files for easy sharing
GNU General Public License v3.0
23 stars 5 forks source link

File input not detecting changes... #14

Closed ayunami2000 closed 3 months ago

ayunami2000 commented 3 months ago

When you upload a file and then delete it, the website does not clear the file input, so, if I was to, say, recompile my jar with some updated code, and then try uploading it, it does not detect the file change. The fix is to clear the file input after a file has been selected, so it can always detect a new file.

lgommans commented 3 months ago

Good suggestion! I actually noticed this myself a few days ago, though not sure where and now I can't actually reproduce it in a couple of browsers. But I see the field can be cleared when calling form.reset() so that fix hopefully works in whatever browser you/we ran into this bug :). Let me know if this doesn't adequately fix it!

ayunami2000 commented 3 months ago

Indeed seems to be fixed, thank you!