Problem with multiple=false in Upload control

4 posts, 0 answers
  1. Ever
    Ever avatar
    8 posts
    Member since:
    Nov 2014

    Posted 16 Jan 2015 Link to this post

    Hello, I am using Upload Control (Kendo UI), in the view code I specify k-multiple="false" in the upload control.

    <input type="file" name="file_{{doc.Name}}"
                                       kendo-upload k-async="{ saveUrl: '@ViewBag.UploadUrl', removeUrl: '@ViewBag.RemoveUrl', autoUpload: true }"
                                       k-success="onSuccess" />

    My situation is:
    - When the file selected is uploaded and the control is 100% (green color), after this, the upload control allows to select another additional file and upload it, but I need that upload control doesn't allow select and upload multiple files.

    Could you please help me?

  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2312 posts

    Posted 19 Jan 2015 Link to this post

    Hello Ever,

    I covered this question on the support thread on the same topic. Could you please check my answer and let me know if this was the reason for the problem?

    Dimiter Madjarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Stephane
    Stephane avatar
    1 posts
    Member since:
    Mar 2015

    Posted 06 Dec 2017 in reply to Dimiter Madjarov Link to this post

    A link to that thread would be nice...
  4. Veselin Tsvetanov
    Veselin Tsvetanov avatar
    1239 posts

    Posted 08 Dec 2017 Link to this post

    Hi Stephane,

    The multiple configuration of the Kendo Upload allows the developer to configure whether the widget will accept multiple files to be selected at once or not. It will not limit the total number of uploaded files.

    If you need to limit the user to upload only one file, I would suggest you to use the widget enable() method in the success event handler in the following way:
    $scope.onSuccess = function(e) {

    Here you could find a simple Dojo, implementing the above suggestion.

    Veselin Tsvetanov
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top