Git Product home page Git Product logo

Comments (6)

JamesRandall avatar JamesRandall commented on June 20, 2024 1

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.

from functionmonkey.

JamesRandall avatar JamesRandall commented on June 20, 2024 1

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.

from functionmonkey.

JamesRandall avatar JamesRandall commented on June 20, 2024

Hmmm. That's a really good question. You can't at the moment but I'd be super interested in your thoughts on how this could work.

In an ideal world what would the command look like?

from functionmonkey.

shep1987 avatar shep1987 commented on June 20, 2024

My original attempt was something like this:

public class PostFileForUploadCommand : ICommand<FileUploaded>
{
    public IFormCollection Form { get; set; }
}

You would then just have access to the form object like you do if you have the HttpRequest.

Thanks for the speedy reply!

from functionmonkey.

JamesRandall avatar JamesRandall commented on June 20, 2024

I managed to knock up a proof of concept of this on the train this morning - not tested yet but no real problems.

from functionmonkey.

shep1987 avatar shep1987 commented on June 20, 2024

Sounds great! let me know if I can help in any way.

from functionmonkey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.