SteveSandersonMS / BlazorInputFile

A file input component for Blazor applications
250 stars 75 forks source link

How to upload file and save it to disk? #64

Open yorytang opened 3 years ago

yorytang commented 3 years ago

i have try to save file in local disk using FileStream,but no any file saved in disk C, no any run error. code as below:

var fs = new FileStream(@"C:\TQSissue_20201231.xlsx", FileMode.CreateNew); await file.Data.CopyToAsync(fs);