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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user