Radzen Multiple file upload in Blazor web assembly app

rohith bs 1 Reputation point
2022-10-14T05:08:09.543+00:00

Radzen Multiple file upload in Blazor web assembly app to SQL Server uploads only latest file by overwriting previous files stored as Varbinary(Max). Please share me the asp.net core code to upload multiple file with new records inserted for all files

Developer technologies .NET Blazor
SQL Server Other
{count} votes

1 answer

Sort by: Most helpful
  1. rohith bs 1 Reputation point
    2022-10-14T07:31:50.923+00:00

    yes thanks for the information, changing from SaveChangesAsync to SaveChages in AddFile method worked

    earlier

    _dbContext.DocumentViewmodels.Add(file);
    _dbContext.SaveChangesAsync();
    }

    now

    _dbContext.DocumentViewmodels.Add(file);
    _dbContext.SaveChanges();
    }


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.