Kendo UI Upload Chunk to SQL Server Filestream

2 posts, 0 answers
  1. Mark A
    Mark A avatar
    1 posts
    Member since:
    Apr 2014

    Posted 07 Nov 2017 Link to this post

    Hi,

    I've been working with the async upload and have a requirement to get the chunk version working as per the example at http://demos.telerik.com/kendo-ui/upload/chunkupload

    I've got this working as per the demo and uploading to a local file system and I can step through the code to see how this works. However the file storage is SQL Server Filestream (which I have working with the standard async version) and it needs to handle much larger files (2+ GB) so I need to chunk upload to prevent it timing out and to give the user an indication of progress.

    So, based on the demo included above I need to implement the SQL calls to upload the chunks in the foreach loop in the ChunkSave method but I'm not sure how to acheive this taking into account I need to wrap the chunks in a transaction so that I know if it's succeeded or failed. In addition I need to save additional values against each file so I'm not sure how I would acheive this (have a check in the foreach loop to see if these values have already been set maybe?).

    I've not been able to find any examples using the Kendo control so if anyone could offer some advice or point me to some examples that would be very much appreciated.

    Thanks,

    Mark

  2. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    1219 posts

    Posted 09 Nov 2017 Link to this post

    Hi Mark,

    I would suggest you to combine the chunks on the server and store the entire file in the SQL Server Filestreem. This way you will be able to store each file with a single transaction and assign only once the additional values required.

    Regards,
    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