How to separate file when I select multiple file at same time?

6 posts, 0 answers
  1. Thang
    Thang avatar
    3 posts
    Member since:
    Jul 2016

    Posted 13 Jul Link to this post

    Hi all,

    I want to separate file when i select multiple file at same time with synchronous mode?

    And I use synchronous mode, drap drop file not working in IE?

     

    Thanks for reply

  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 14 Jul Link to this post

    Hello Thang,

    Both of the requirements (separating the files and drag/drop) are not supported in synchronous mode. Basically the synchronous mode does not differ much from a regular <input type="file" /> element which is styled as a Kendo UI Upload widget.

    Regards,
    Dimiter Madjarov
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  3. Kendo UI is VS 2017 Ready
  4. Thang
    Thang avatar
    3 posts
    Member since:
    Jul 2016

    Posted 14 Jul Link to this post

    Tks admin

    I using mode async, how to submit all file selected ?

     

    Example: When I selected 3 file, Kendo request the server 3 times. 

  5. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 14 Jul Link to this post

    Hello Thang,

    Yes, this is the default behavior of the widget - each file is sent in a separate request. If you would like to post all files in a single request, you should enable the async.batch option of the widget.

    Regards,
    Dimiter Madjarov
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  6. Thang
    Thang avatar
    3 posts
    Member since:
    Jul 2016

    Posted 14 Jul Link to this post

    Tks Admin

    And I last question: I can get files selected before upload ? 

    Purpose: I want to separate file and submit all file to server 1 time.

     

  7. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 15 Jul Link to this post

    Hello Thang,

    The select event of the Upload widget could be used to retrieve the selected files before uploading them.

    http://docs.telerik.com/kendo-ui/api/javascript/ui/upload#events-select

    Regards,
    Dimiter Madjarov
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
Back to Top
Kendo UI is VS 2017 Ready