title: Ionic 2/3 - I can't download image from url
body: <p>I have a problem with download image using url. The application alert me that image has been downloaded but nothing in the gallery. Here my steps and codes:</p>
  
  <p>1st: I installed these plugins</p>
  
  <ul>
  <li><a href="https://ionicframework.com/docs/native/file/" rel="nofollow noreferrer">https://ionicframework.com/docs/native/file/</a></li>
  <li><a href="https://ionicframework.com/docs/native/file-transfer/" rel="nofollow noreferrer">https://ionicframework.com/docs/native/file-transfer/</a></li>
  </ul>
  
  <p>2nd: In the Medule:</p>
  
  <pre><code>import { FileTransfer, FileUploadOptions, FileTransferObject } from '@ionic-native/file-transfer';
  import { File } from '@ionic-native/file';
  ...
  providers:[
     ...
     FileTransfer,
     //FileUploadOptions, 
     FileTransferObject,
     File,
  ]
  </code></pre>
  
  <p>finally: In my home page </p>
  
  <pre><code> import { FileTransfer, FileUploadOptions, FileTransferObject } from 
   '@ionic-native/file-transfer';
   import { File } from '@ionic-native/file'; 
   ...
   export class HomePage {
      fileTransfer: FileTransferObject = this.transfer.create();
  
      constructor(... , private transfer: FileTransfer, private file: File) {}
      ...
  
      download(imgURL){
         this.fileTransfer.download(image.img, this.file.dataDirectory + 'file.jpg').then((entry) =&gt; {
            alert('download complete: ' + entry.toURL())
         }, (error) =&gt; {
            // handle error
         });
      }
   }
  </code></pre>
  
  <p>So, Is there any wrong thing in my steps?</p>