uploading image from URL to a source with JavaScript [duplicate]

Is their a way to upload an image from a URL? For example I have a input field, I will enter the URL in it. Then when I hit a button it will upload the image (from the URL ) to the image uploader or file uploader.

is there a possible solution for this????