Skip to content

Commit

Permalink
Update to v24.1 (#6)
Browse files Browse the repository at this point in the history
* Update UploadController.cs

* README auto update [skip ci]

* Update UsingUploadEditDataGrid.csproj

* Add files via upload

---------

Co-authored-by: DevExpressExampleBot <fake@test.test>
  • Loading branch information
SvetlanaMikheeva and DevExpressExampleBot committed May 15, 2024
1 parent af501bd commit 26a52c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CS/UsingUploadEditDataGrid/Controllers/UploadController.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using UsingUploadEditDataGrid.Data;

namespace UsingUploadEditDataGrid.Controllers {
Expand Down Expand Up @@ -30,7 +32,7 @@ public ActionResult UploadFile(IFormFile ImageUpload, string chunkMetadata) {

try {
if (!string.IsNullOrEmpty(chunkMetadata)) {
var metaDataObject = JsonConvert.DeserializeObject<ChunkMetadata>(chunkMetadata);
var metaDataObject = JsonSerializer.Deserialize<ChunkMetadata>(chunkMetadata);
var tempFilePath = Path.Combine(tempPath, metaDataObject.FileGuid + ".tmp");
if (!Directory.Exists(tempPath))
Directory.CreateDirectory(tempPath);
Expand Down
2 changes: 1 addition & 1 deletion CS/UsingUploadEditDataGrid/UsingUploadEditDataGrid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

</PropertyGroup>
<ItemGroup>
<PackageReference Include="DevExpress.Blazor" Version="23.1.3" />
<PackageReference Include="DevExpress.Blazor" Version="24.1.2" />
</ItemGroup>
<ItemGroup>
<Folder Include="wwwroot\images\" />
Expand Down
Binary file modified grid-edit-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 26a52c1

Please sign in to comment.