diff --git a/WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/Core/AppFileExplorer.cs b/WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/Core/AppFileExplorer.cs index 24caa2fa..cafbcde3 100644 --- a/WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/Core/AppFileExplorer.cs +++ b/WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/Core/AppFileExplorer.cs @@ -98,15 +98,19 @@ public async Task GetFileAsync( /// The path to the file we are uploading. /// An optional subpath to the folder. /// The package full name if using LocalAppData. + /// The indication if the file should be extracted after upload. /// Task tracking completion of the upload request. public async Task UploadFileAsync( string knownFolderId, string filepath, string subPath = null, - string packageFullName = null) + string packageFullName = null, + bool shouldExtract = false) { Dictionary payload = this.BuildCommonFilePayload(knownFolderId, subPath, packageFullName); + payload.Add("extract", shouldExtract.ToString()); + List files = new List(); files.Add(filepath);