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.