Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpFileCollectionWrapper binding fails when uploading files #286

Closed
gbrunton opened this issue Apr 19, 2012 · 5 comments
Closed

HttpFileCollectionWrapper binding fails when uploading files #286

gbrunton opened this issue Apr 19, 2012 · 5 comments
Milestone

Comments

@gbrunton
Copy link

Using Nuget, we installed the Razor view engine (FubuMVC.Razor v0.9.5.817 and RazorEngine v3.0.8) which upgraded the following packages:

Bottles from 0.9.1.202 to 0.9.1.224
FubuCore from 0.9.4.117 to 0.9.8.130
FubuLocalization from 0.9.4.116 to 0.9.5.17
FubuMVC.References from 0.9.4.762 to 0.9.5.817

Now when we upload files the HttpFileCollectionWrapper value on our input model is null.

Downgrading all of the packages and grabbing the older Nuget FubuMVC.Razor -Version 0.9.4.768 fixed things.

@chadmyers
Copy link
Member

Side Note: When binding failures like this happen, you can take IFubuRequest into your controller and call the ProblemsFor() which will return an IEnumerable which will tell you what went wrong.

@chadmyers
Copy link
Member

See related root-cause issue in FubuCore: #39

@chadmyers
Copy link
Member

FubuCore issue #39 is fixed and FubuMVC is awaiting a ripple update of the Nugets, which we're planning on doing tomorrow because there are some other FubuCore changes and pull requests that need to be rippled to downstream projects.

@cbermar
Copy link

cbermar commented Aug 31, 2012

Is this problem fixed in the latest NuGet package? We have the same problem, posted files not being model binded, thus ending up null in our controllers. We tried all the "workarounds" mentioned without luck. We are using the latest NuGet packages and Razor view engine.

@chadmyers
Copy link
Member

@gbrunton @cbermar It's been awhile, but we just ran into this again at Dovetail. I confirmed our DLL has this fix, but we're still having problems with HttpFileCollectionWrapper for some reason.

It turns out that if you use HttpFileCollectionBase, it should work just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants