Skip to content

FileTransfer.download doesn't overwrite existing file on iOS (at least for me) #236

@jaandrle

Description

@jaandrle

Hi, I'm appending an unique query string in path in my fileTransfer.download wrapper. So, if there are others with the same issue, it can be helpfull to add something like:

var ios_fix= ""; if(Helpers.isCordovaIOS()) ios_fix= "?v="+Math.random();//against iOS caching
/* ... */
      fileTransfer.download(
        img_src+ios_fix,
        filePath+ios_fix,

nearby

filePath,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions