# @uppy/url import multiple images from URL

**URL:** <https://community.transloadit.com/t/uppy-url-import-multiple-images-from-url/16277>\
**Category:** Uppy\
**Created:** [October 6, 2022, 9:21pm UTC](https://community.transloadit.com/t/uppy-url-import-multiple-images-from-url/16277 "2022-10-06T21:21:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lumberjackdude](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@lumberjackdude](https://community.transloadit.com/u/lumberjackdude)\
**Post date:** [October 6, 2022, 9:21pm UTC](https://community.transloadit.com/t/uppy-url-import-multiple-images-from-url/16277/1 "2022-10-06T21:21:51Z")

</div>

Hello everyone, there is an example besides the doc, I’m a little bit confused to use the import URL component from Uppy, also if somebody can clarify if I can create a link with an array of images like [“[[http://image.com](http://image.com)”, “[[http://image2.com](http://image2.com)”] to upload at once multiple images at once?

Thanks very much!

---

<div class="post-metadata">

**Author:** ![mifi](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/mifi/32/603_2.png) [@mifi](https://community.transloadit.com/u/mifi)\
**Post date:** [October 10, 2022, 10:18am UTC](https://community.transloadit.com/t/uppy-url-import-multiple-images-from-url/16277/2 "2022-10-10T10:18:58Z")

</div>

Hi. I understand you want to programmatically add multiple URLs to the Uppy URL plugin.

I think this can be done by calling the `addFile` method multople times:

```auto
const url = uppy.getPlugin('Url')
await url.addFile('https://example.com/myfile1.pdf')
await url.addFile('https://example.com/myfile2.pdf')
await uppy.upload()

```

See [Import From URL — Uppy](https://uppy.io/docs/url/)

---

<div class="post-metadata">

**Author:** ![lumberjackdude](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@lumberjackdude](https://community.transloadit.com/u/lumberjackdude)\
**Post date:** [October 10, 2022, 11:55am UTC](https://community.transloadit.com/t/uppy-url-import-multiple-images-from-url/16277/3 "2022-10-10T11:55:44Z")

</div>

Almost that, is something like a URL with 10 images there ( Array of images ), I can get the images with the uppy/url? :3  
thanks very much!

---

<div class="post-metadata">

**Author:** ![mifi](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/mifi/32/603_2.png) [@mifi](https://community.transloadit.com/u/mifi)\
**Post date:** [October 10, 2022, 12:34pm UTC](https://community.transloadit.com/t/uppy-url-import-multiple-images-from-url/16277/4 "2022-10-10T12:34:31Z")

</div>

Not sure what you mean, but if you want an array of images, just use a JS forEach like this:

```auto
const plugin = uppy.getPlugin('Url')
for (const url of ['http://url1', 'http://url2']) {
  await plugin.addFile(url)
}
await uppy.upload()

```
