question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Accessing FORM in a HttpPost

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JamesRandallcommented, Nov 30, 2018

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.

1reaction
JamesRandallcommented, Nov 26, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found