Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70754

Delete image from device Ionic

$
0
0

@markedjani wrote:

Using Ionic 3 File pkugin for removing images from device,

 deleteFromDevice(data){

      for(let i=0; i<data.rows.length; i++){
        this.file.removeFile(data(i).location, data(i).picture).then(_ => console.log('deleted')).catch(err => console.log('cannot delete'));
        }
        }, (error) => {
            console.log("Greška: " + JSON.stringify(error.err));
        });
  }

Above function deletes images content but file remains on device with exclamation mark. Anyone familiar with this?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70754

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>