Finding File data from POST in C# -


It's obviously obvious that I'm just remembering help me, so! I am trying to access the file data posted through a web form from the post (though not created in C #). I do not know how to do this, and MSDN is unusually baseless in this case.

These are the three things that I have tried so far:

  request ["file"]; Request.Form ["File"]; Request;  

What else? It seems to be an unavailable post data. If it helps, then the output from firebug is given here:

  Content-Type: Multipart / Form-Data; Border = --------------------------- 14 9243018821763 content-length: 703 -------------- - -------------- 14 9243018821763 Content-presentation: Form-data; Name = "file"; Filename = "testearch.txt" content-type: text / plain just a few plain text data ----------------------------- 14 9243018821763 Content-Displacement: Form-Data; Name = "folder" ftp://wwwdev.jbu.edu/athletics/resource/media/testsearch.txt -------------------------- --- 14 9243018821763 Content-presentation: Form-data; Name = "MAX_FILE_SIZE" 100000 ----------------------------- 14 9243018821763 Content-presentation: Form-data; Name = "U" username ----------------------------- 14 9243018821763 Content-presentation: form-data; Name = "p" password ----------------------------- 14 9243018821763--  

Try ...

  request. Files ["File"]  

Reflectors show that files are excluded from the request. Form archive


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -