# Ionic 4: file.resolveFilesystemUrl is not a function

**URL:** <https://forum.ionicframework.com/t/ionic-4-file-resolvefilesystemurl-is-not-a-function/184323>\
**Category:** Ionic Native\
**Created:** [March 2, 2020, 7:12am UTC](https://forum.ionicframework.com/t/ionic-4-file-resolvefilesystemurl-is-not-a-function/184323 "2020-03-02T07:12:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunny595](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sunny595](https://forum.ionicframework.com/u/Sunny595)\
**Post date:** [March 2, 2020, 7:12am UTC](https://forum.ionicframework.com/t/ionic-4-file-resolvefilesystemurl-is-not-a-function/184323/1 "2020-03-02T07:12:13Z")

</div>

Hi,  
I am having an issue with the File plugin in working with ionic.  
The error is:  
`ERROR TypeError: this.file.resolveLocalFilesystemUrl is not a function`  
plugin Version is 6.0.2 and it’s present when I run `cordova plugin ls`

My code looks like this:

```auto
download(num: number) {
    const d = new Date();
    const n = d.getTime();
    const newFileName = n + '.jpg';

    const externalStoragePath: string = this.file.dataDirectory;
    console.log(externalStoragePath);
    // externalStoragePath is always undefined...

    this.file.resolveLocalFilesystemUrl('file:///' + this.slides[num]).then((entry: any) => {
      this.file.resolveLocalFilesystemUrl(externalStoragePath).then((dirEntry: any) => {
        entry.copy(dirEntry, newFileName);
      }).catch((error) => {
        console.log('dirEntryerror: ' + error);
      });
    });
  }

```

What I already tried:

- looking in the plugin code itself, the function is there;
- remove and reinstall the plugin
- when I type in the beginning of the function, my IDE suggests it and there is no Error, also in compiling…

I hope you can help me 🙂

---

<div class="post-metadata">

**Author:** ![EinfachHans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/einfachhans/32/130917_2.png) [@EinfachHans](https://forum.ionicframework.com/u/EinfachHans)\
**Post date:** [March 2, 2020, 7:33am UTC](https://forum.ionicframework.com/t/ionic-4-file-resolvefilesystemurl-is-not-a-function/184323/2 "2020-03-02T07:33:43Z")

</div>

On which Device are you testing?

---

<div class="post-metadata">

**Author:** ![Sunny595](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sunny595](https://forum.ionicframework.com/u/Sunny595)\
**Post date:** [March 2, 2020, 7:42am UTC](https://forum.ionicframework.com/t/ionic-4-file-resolvefilesystemurl-is-not-a-function/184323/3 "2020-03-02T07:42:39Z")

</div>

on Android and on Browser, same behaviour 😕
