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

Double upload with window

5 Answers 268 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Tomer
Top achievements
Rank 1
Tomer asked on 19 Jul 2012, 09:07 AM
Hi 

Im trying to put the upload component inside window.
After the select file window is opened and i select a file, i see it twice in the list. if i uncheck the multiple option then i see it uploaded twice to the server but in the list i see only one file.

i have the latest jquery and kendoui libraries.

  @(Html.Kendo().Window()
           .Name("window")
           .Title("Upload images")
           .Content(@<text>
                         @(Html.Kendo().Upload().Multiple(false)
                                     .Name("files")
                                     .Async(a => a
                                                     .Save("Save", "Properties")
                                                             .Remove("Remove", "Properties")
                                                     .AutoUpload(true)
                                     )
                               )
                     </text>)
           .Draggable()
           .Modal(false).Visible(true))

5 Answers, 1 is accepted

Sort by
0
roger
Top achievements
Rank 1
answered on 21 Jul 2012, 10:30 PM
same here, and after one upload, a click on "Select ..." does nothing.
0
roger
Top achievements
Rank 1
answered on 21 Jul 2012, 10:37 PM
Workaround:
They messed something up with the MVC Helper. If you use the plain old non-helper method (non-server side), it should work.
0
Tomer
Top achievements
Rank 1
answered on 22 Jul 2012, 04:53 AM
cheers
0
T. Tsonev
Telerik team
answered on 24 Jul 2012, 06:28 AM
Hello,

Thanks for the heads up. We're investigating the problem and we'll try to include a fix in the upcoming SP1 release.

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

Regards,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Drew
Top achievements
Rank 1
answered on 22 Aug 2012, 11:43 AM
Until they figure this out, a temp work around looks like this (in quick shorthand)
Theory is that you only want to load the script once. Currently it's loading twice.
(I would love to know when this issue is fixed!)

<Script inside your header>
var FirstLoad = true;
</Script>

<Script inside your window>
if (!FirstLoad)
{
Initialize your Upload Object;
}
//Last script in your window
FirstLoad = false;
</Script>
Tags
Upload
Asked by
Tomer
Top achievements
Rank 1
Answers by
roger
Top achievements
Rank 1
Tomer
Top achievements
Rank 1
T. Tsonev
Telerik team
Drew
Top achievements
Rank 1
Share this question
or