Accessing FORM in a HttpPost
See original GitHub issueI am looking to get hold of the form object from the HTTP request (reqest.Form.Files
)to be able to get a file that is being sent to a function. We currently get this through the request in the function call and im unsure on how to map this to a Command. Help appreciated!
Thanks
Shaun
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Sending form data - Learn web development | MDN
As we'd alluded to above, sending form data is easy, but securing an application can be tricky. Just remember that a front-end developer...
Read more >How to post HTML form to the Server?
To post HTML form data to the server in URL-encoded format, you need to make an HTTP POST request to the server and...
Read more >How to retrieve form values from HTTPPOST, dictionary or?
How I access the parameter values? I am not posting from a View, the post is coming externally. I'm assuming there is a...
Read more >Sending HTML Form Data in ASP.NET Web API
To send the form data to the server, call $.post() . When the request completes, the .success() or .error() handler displays an appropriate ......
Read more >HTML form method Attribute
The method attribute specifies how to send form-data (the form-data is sent to the page specified in the action attribute). The form-data can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is now in v0.18.1 on NuGet now. It works just per your example: it will look for properties of type IFormCollection and map the HTTP request property onto them.
Just realised I forgot to document it in the guide but will do that shortly.
Thanks for that - makes sense. Bit snowed under with client work at the moment but I’ll see if I can sneak something in along those lines as should be fairly simple.