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();
- }
exception done on red line
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