I have next code:
var ordinaryPropertyValue = new Catalog.Core.Entities.OrdinaryPropertyValue();
Environment.CurrentDirectory = System.IO.Path.GetTempPath();
var fileFile = Request.Files["File" + prop.Id];
if (fileFile == null) continue;
string pathFile = Environment.CurrentDirectory;
fileFile.SaveAs(pathFile);
ordinaryPropertyValue.Value = pathFile;
instance.SetPropertyValue(prop.Id, ordinaryPropertyValue);
But I can’t load my file ‘cos the next problem:
AccessException: Access to the path ‘C:\Users\Michael\AppData\Local\Temp’ is denied.
Thanks for help, but the real cause was not the problem with access, as you have said.
The real reason was empty “” value. So i have remake my code such as: