# Com.webos.service.downloadmanager/download

**URL:** <https://forum.webosose.org/t/com-webos-service-downloadmanager-download/986>\
**Category:** App Development\
**Created:** [January 20, 2020, 4:58pm UTC](https://forum.webosose.org/t/com-webos-service-downloadmanager-download/986 "2020-01-20T16:58:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RuiLopes](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@RuiLopes](https://forum.webosose.org/u/RuiLopes)\
**Post date:** [January 20, 2020, 4:58pm UTC](https://forum.webosose.org/t/com-webos-service-downloadmanager-download/986/1 "2020-01-20T16:58:00Z")

</div>

how to download using the service com.webos.service.downloadmanager/download directly to the application folder?

I'm just getting it done for the /media/internal folder and then I can't use the image downloaded in the application

---

<div class="post-metadata">

**Author:** ![NERGI](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nergi/32/364_2.png) [@NERGI](https://forum.webosose.org/u/NERGI)\
**Post date:** [January 21, 2020, 8:01am UTC](https://forum.webosose.org/t/com-webos-service-downloadmanager-download/986/2 "2020-01-21T08:01:53Z")

</div>

Hi @RuiLopes, welcome to the forum.

Could you provide the following information?

- Version of your webOS OSE (you can see the build number from GitHub)
- Error message or log of the operation if it exists

Thanks

---

<div class="post-metadata">

**Author:** ![RuiLopes](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@RuiLopes](https://forum.webosose.org/u/RuiLopes)\
**Post date:** [January 21, 2020, 9:41am UTC](https://forum.webosose.org/t/com-webos-service-downloadmanager-download/986/3 "2020-01-21T09:41:08Z")

</div>

I @NERGI the webOS OSE version is 2.2.0.

It doesn't give any error, but the download instead of going to the folder /media/developer/apps/usr/palm/applications/com.lg.app.myapp/ goes to the folder /media/internal/download

the parameters sent are

```
params = JSON.stringify({
    target: `'myUrlDownloas',
    targetDir: `'/media/developer/apps/usr/palm/applications/com.lg.app.myapp/'   
    targetFilename: `'myFileName.jpg'
  });`

```

in the app then says

> Failed to load resource: net::ERR\_FILE\_NOT\_FOUND

---

<div class="post-metadata">

**Author:** ![NERGI](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nergi/32/364_2.png) [@NERGI](https://forum.webosose.org/u/NERGI)\
**Post date:** [January 21, 2020, 10:59am UTC](https://forum.webosose.org/t/com-webos-service-downloadmanager-download/986/4 "2020-01-21T10:59:22Z")

</div>

~~target: `'myUrlDownloas',~~

~~Is the value for the `target` property right? It seems like typo of `myUrlDownloads`.~~

Never mind for the above comment. I confused.

---

<div class="post-metadata">

**Author:** ![NERGI](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nergi/32/364_2.png) [@NERGI](https://forum.webosose.org/u/NERGI)\
**Post date:** [January 21, 2020, 11:18am UTC](https://forum.webosose.org/t/com-webos-service-downloadmanager-download/986/5 "2020-01-21T11:18:59Z")

</div>

@RuiLopes,  
Could you try the same thing using the command line?  
Refer to [example](https://www.webosose.org/docs/reference/ls2-api/com-webos-service-downloadmanager/#example-6).

---

<div class="post-metadata">

**Author:** ![RuiLopes](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@RuiLopes](https://forum.webosose.org/u/RuiLopes)\
**Post date:** [January 21, 2020, 12:08pm UTC](https://forum.webosose.org/t/com-webos-service-downloadmanager-download/986/6 "2020-01-21T12:08:36Z")

</div>

@NERGI in command line works, but in application not work

---

<div class="post-metadata">

**Author:** ![NERGI](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nergi/32/364_2.png) [@NERGI](https://forum.webosose.org/u/NERGI)\
**Post date:** [January 22, 2020, 12:38am UTC](https://forum.webosose.org/t/com-webos-service-downloadmanager-download/986/7 "2020-01-22T00:38:13Z")

</div>

@RuiLopes,  
Could you share your `appinfo.json` file? (especially `requiredPermissions` property )
