I'm using the UploadBox control and using the example code to implement the SaveDefault method, e.g.:
public ActionResult SaveDefault(IEnumerable<HttpPostedFileBase> UploadDefault)
{
foreach (var file in UploadDefault)
{
...
}
...
}
The problem is that UploadDefault is null... If I start from a blank project or run a sample project it works correctly.
I first came across the problem in some older code - I added in SyncFusion to the project and on running the UploadDefault was null. I assumed it was just some code clash. or some hang over of the way I had implemented the MVC code.
I can actually see that the client code is returning (what appears to be) to the server an HTML response with the file encoded - so does not appear to be a client issue but server side processing
However, I started another new project and now that project is now returning null. I've checked all the things I can - has anyone else come across this? Have I missed something simple (e.g. jQuery version clash, incompatiblity with .NET 4.5.1)?
Thanks,