Skip to content

Commit

Permalink
Fix on asset's name when a file was uploaded on multiple devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérémy Filhoulaud committed Jan 7, 2021
1 parent b67a37b commit 5757a62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Device.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ public async Task UpdateOrderAssetsAsync(string newOrder)
/// <returns></returns>
public async Task CreateAssetAsync(Asset a)
{
var originalName = a.Name;

if (a.LocalToken != null)
{
var localFile = await StorageApplicationPermissions.FutureAccessList.GetFileAsync(a.LocalToken);
Expand All @@ -284,6 +286,8 @@ public async Task CreateAssetAsync(Asset a)
string resultJson = string.Empty;
string parameters = $"/api/{this.ApiVersion}assets";

a.Name = originalName;

try
{
HttpClient client = new HttpClient();
Expand Down
2 changes: 1 addition & 1 deletion Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
<Identity Name="bd4d638c-2e98-49e2-be8a-65be3fa9900d" Publisher="CN=j.filhoulaud" Version="1.0.21.0" />
<Identity Name="bd4d638c-2e98-49e2-be8a-65be3fa9900d" Publisher="CN=j.filhoulaud" Version="1.0.22.0" />
<mp:PhoneIdentity PhoneProductId="bd4d638c-2e98-49e2-be8a-65be3fa9900d" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>ScreenlyManager</DisplayName>
Expand Down

0 comments on commit 5757a62

Please sign in to comment.