# WKWebview and "file://" - doesn't work even after removing file://

**URL:** <https://forum.ionicframework.com/t/wkwebview-and-file-doesnt-work-even-after-removing-file/96956>\
**Category:** ionic-v3\
**Created:** [July 5, 2017, 1:34am UTC](https://forum.ionicframework.com/t/wkwebview-and-file-doesnt-work-even-after-removing-file/96956 "2017-07-05T01:34:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pliablepixels](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/pliablepixels/32/112372_2.png) [@pliablepixels](https://forum.ionicframework.com/u/pliablepixels)\
**Post date:** [July 5, 2017, 1:34am UTC](https://forum.ionicframework.com/t/wkwebview-and-file-doesnt-work-even-after-removing-file/96956/1 "2017-07-05T01:34:38Z")

</div>

Hi, is there anyone displaying local images stored by `cordova file` whilst using WKWebview ? I read that WKWebView doesn’t support `file://` and removing it should work (as per @mhartington’s comment [here](https://forum.ionicframework.com/t/wkwebview-v3-0-0/82814/19?u=pliablepixels))

so this is my code:

(Note: I am using the ionic team’s WKWebview fork via `ionic cordova plugin add https://github.com/ionic-team/cordova-plugin-wkwebview-engine.git --save`

```auto
// Always get the accurate path to your apps folder
  public getFullPath(img) {
    let path = this.file.dataDirectory + img; // same as cordova.file.dataDirectory
    if (this.platform.is('ios'))
    {
      //console.log ("removing path...");
      if (path.startsWith("file://")) {
        path = path.slice(7);
        //console.log ("SLICED");
      }
    // an example of the path returned /var/mobile/Containers/Data/Application/9EFDFC21-754D-46BF-890C-A2CAE8B4361C/Library/NoCloud/1499219374621.jpg
    }
}

```

And the template does  
`<img src="{{getFullPath(item.photo)}}" />`

Everything works without WKWebView. Thanks
