I work on asp.net core api with .net core 2.2
but i get error
ex = {System.IO.IOException: There is not enough space on the disk : '\\192.168.2.7\ImportExport\testImporter\5\orignal-920e7c47-c345-4c40-86ac-6ecb9dde8e6c.xlsx\orignal-920e7c47-c345-4c40-86ac-6ecb9dde8e6c.xlsx'
at System.IO.FileStream.WriteCore(ReadOnlySpa..
- var filedata = ContentDispositionHeaderValue.Parse(Request.Form.Files[0].ContentDisposition).FileName.Trim('"');
- var dbPath = Path.Combine(DirectoryCreate, fileName);
- using (var stream = new FileStream(dbPath, FileMode.Create))
- {
- Request.Form.Files[0].CopyTo(stream);
- stream.Flush();
- stream.Close();
- }
so why this error happen
and how to avoid it
so how to solve issue please ?
dbpath variable as below
\\192.168.2.7\ImportExport\testImporter\5\orignal-85d31d98-8e98-427b-9c61-fce191f002b8.xlsx\orignal-85d31d98-8e98-427b-9c61-fce191f002b8.xlsx
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pranam BhatPosted May 25, 2021, 7:10 AM