public async Task OnPostUploadAsync() { if (IsFile(UploadedFile.FileName)) { string filename = UniqueFilename(UploadedFile.FileName); var stream = new MemoryStream(); UploadedFile.CopyTo(stream); System.IO.File.WriteAllBytes(FilePathFolder + filename, stream.ToArray()); FileListValue = filename; await OnPostSelectFileAsync(); } }