When a http post request from a remote client arrived, I want to pass this reqeuest (upload some files) to the controller to process. What shall I do in the view page using razor?
Asked
Active
Viewed 1,265 times
1 Answers
0
The HttpContext is automatically available in your Controller, just use the HttpContext
property.
Likewise, the HttpRequest is available through the Request
property.

Andre Loker
- 8,368
- 1
- 23
- 36
-
Thx.Can you give me some code examples? I am a newbie of razor. – Tom Jacky Mar 01 '12 at 10:25
-
How to upload a file in MVC 3: http://stackoverflow.com/questions/5193842/file-upload-asp-net-mvc3-0 – Andre Loker Mar 01 '12 at 10:26
-
I have seen the example. But my post request is coming from the remote client process and do not require the 'input' page. Sorry for my pool english. – Tom Jacky Mar 01 '12 at 10:34
-
That is to say, the coming request is constructed by another application but not the 'input submit' click action. – Tom Jacky Mar 01 '12 at 10:41