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

[Solved] Multiple Upload controls in MVC View

1 Answer 98 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
King Wilder
Top achievements
Rank 2
King Wilder asked on 06 Aug 2010, 12:37 AM
I'm not sure this is specific to MVC but I wasn't sure.

I have an MVC view page and I have two RadUpload controls on it.  One for bulk uploads, for selecting zip files, and another for single file uploads.

First of all, everything works.  The issue I'm having, which isn't critical, is that when a file is submitted in either upload control, both progress area controls are displayed uploading the file.

Is there a way to have an upload control associated with a progress area control?

Thanks,

King Wilder

1 Answer, 1 is accepted

Sort by
0
King Wilder
Top achievements
Rank 2
answered on 06 Aug 2010, 01:14 AM
I've developed a work around that I like better. I consolidated the two upload controls into one. 

I just wrote programming in the controller action that determines what file type is being submitted, either .zip or .jpg.  If it's a .zip file then I extract it and the add the individual image files to the database, otherwise I just add the single image file to the database.  Works perfectly!

This way there's only one Upload control and one progress area control.

But if there is a way to associate the controls it might be a good thing to know.

Thanks,

King Wilder
Tags
General Discussions
Asked by
King Wilder
Top achievements
Rank 2
Answers by
King Wilder
Top achievements
Rank 2
Share this question
or