uploads: fix double paste bug.

Fix a bug where, when pasting an URL directly into the URL field, the
URL would be pasted twice, which would cause the upload to fail because
the URL was invalid.
This commit is contained in:
evazion
2022-01-29 04:48:27 -06:00
parent 11b7bcac91
commit e1d4de1c22

View File

@@ -81,6 +81,8 @@ export default class FileUploadComponent {
if (/^https?:\/\//.test(url)) {
this.$component.find("input[type='submit']:not([disabled])").click();
}
e.preventDefault();
}
// Called after the upload is submitted via AJAX. Polls the upload until it