Merge pull request #1515 from dpalou/MOBILE-2622

MOBILE-2622 desktop: Fix upload files in Windows and Linux
main
Juan Leyva 2018-09-19 16:07:45 +02:00 committed by GitHub
commit b07156d9c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ export class CoreFileUploaderHelperProvider {
}
// 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;
}