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

Kendo UI Upload Chunk to SQL Server Filestream

1 Answer 117 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Mark A
Top achievements
Rank 1
Mark A asked on 07 Nov 2017, 01:27 PM

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

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 09 Nov 2017, 10:36 AM
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.
Tags
Upload
Asked by
Mark A
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or