Merge pull request #1515 from dpalou/MOBILE-2622
MOBILE-2622 desktop: Fix upload files in Windows and Linuxmain
commit
b07156d9c5
|
@ -467,7 +467,7 @@ export class CoreFileUploaderHelperProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure the path has the protocol. In iOS it doesn't.
|
// Make sure the path has the protocol. In iOS it doesn't.
|
||||||
if (path.indexOf('file://') == -1) {
|
if (this.appProvider.isMobile() && path.indexOf('file://') == -1) {
|
||||||
path = 'file://' + path;
|
path = 'file://' + path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue