Commit 7dbad45a by Matteo

Sistemata directory dove scaricare i documenti su ios

parent ec55c9fa
......@@ -256,7 +256,8 @@ export class UtilService {
shareDocumento(fileUrl: string, nomeFile: string)
{
var path = "";
path = this.file.externalDataDirectory;
if(this.platform.is("ios")) path = this.file.tempDirectory;
else path = this.file.externalDataDirectory;
nomeFile = nomeFile.replace(/\//g, "-");
this.showLoading();
this.download(fileUrl)
......@@ -282,7 +283,8 @@ export class UtilService {
downloadDocumento(fileUrl: string, nomeFile: string)
{
var path = "";
path = this.file.externalDataDirectory;
if(this.platform.is("ios")) path = this.file.tempDirectory;
else path = this.file.externalDataDirectory;
nomeFile = nomeFile.replace(/\//g, "-");
this.showLoading();
this.download(fileUrl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment