This is a migrated thread and some comments may be shown as answers.

[Solved] Upload Control Conflicts with UpdateModel MVC Method

1 Answer 114 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Patrick Barranis
Top achievements
Rank 1
Patrick Barranis asked on 18 Apr 2011, 05:50 PM
Hi.  I'm running the 2011 Q1 build on a C# MVC3 Razor project (on Win 7 x64 Enterprise SP1), and I seem to be having a problem with a conflict between the new Upload control and the built-in method Controller.UpdateModel in MVC.

Essentially the issue is that if I don't have the upload control in the view then, without changing any code, UpdateModel works as advertised.  However if I have a single upload control in the view then UpdateModel stops working altogether.  I've looked for any obvious reasons for this but I could not find any.

I have attached a simple project that has the upload control on a page that also uses UpdateModel.  I have also included a quick screen capture of me demonstrating the issue.  I thought this might be a great deal faster than a lengthy explanation.

I don't know if this is a bug or if there is a workaround.  If it is a bug please just let me know and I'll put in place a quick reflection-based alternative to using UpdateModel easily enough.  Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 19 Apr 2011, 12:35 PM
Hello Patrick,

Thank you for sending the project and for taking the time to record a video of the issue.

We were able to track down the problem down to a bug in the Upload.  It contains an input with an empty name which gets submitted to the server. This is normally filtered by the browser, but this doesn't happen in IE.

We've fixed the problem and you can download the latest internal build - version 2011.1.419

As a token of gratitude for your involvement your Telerik points have been updated.

Best Regards,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Upload
Asked by
Patrick Barranis
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or