From a50b54e56c2a99c3fa4df2145a540af08a2ba4f8 Mon Sep 17 00:00:00 2001 From: dpalou Date: Wed, 19 Sep 2018 15:57:38 +0200 Subject: [PATCH] MOBILE-2622 desktop: Fix upload files in Windows and Linux --- src/core/fileuploader/providers/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/fileuploader/providers/helper.ts b/src/core/fileuploader/providers/helper.ts index df0d8fb21..75c4cd9fb 100644 --- a/src/core/fileuploader/providers/helper.ts +++ b/src/core/fileuploader/providers/helper.ts @@ -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; }