Harlem 98

Harlem 98

  • NA
  • 161
  • 16.6k

Syntax question

Dec 9 2021 7:04 PM

I'm refering a folder containg a file to upload in DB. and i'm struggling with the right syntax.

I'm uploading a file in upload method, and then saving it's location in DB. At the moment i´m saving the whole folder in DB, instead of the uploaded file. How could i change this property?

model.FileContent = Encoding.ASCII.GetBytes(Server.MapPath(@"~/TargetFiles")); //fileBytes

 


Answers (3)