diff --git a/XeroNetStandardApp/Controllers/Files/FilesSyncController.cs b/XeroNetStandardApp/Controllers/Files/FilesSyncController.cs index fffd484..ae896d5 100644 --- a/XeroNetStandardApp/Controllers/Files/FilesSyncController.cs +++ b/XeroNetStandardApp/Controllers/Files/FilesSyncController.cs @@ -91,6 +91,7 @@ await Api.UploadFileAsync( byteArray, formFile.FileName, formFile.FileName, + null, formFile.ContentType ); } diff --git a/XeroNetStandardApp/Views/FilesSync/Index.cshtml b/XeroNetStandardApp/Views/FilesSync/Index.cshtml index a667db0..1672b38 100644 --- a/XeroNetStandardApp/Views/FilesSync/Index.cshtml +++ b/XeroNetStandardApp/Views/FilesSync/Index.cshtml @@ -20,8 +20,8 @@ @item.Name @item.MimeType @(item.Size / 1024) KB - @item.CreatedDateUtc.ToString("d/MM/yy") - @item.UpdatedDateUtc.ToString("d/MM/yy") + @(DateTime.Parse(item.CreatedDateUtc).ToString("d/MM/yy")) + @(DateTime.Parse(item.UpdatedDateUtc).ToString("d/MM/yy")) @item.Id?.ToString().Substring(0,8) @item.FolderId?.ToString().Substring(0,8)