Saving blob in grid cell crashing the chrome browser

0 Answers 114 Views
Grid
Nick
Top achievements
Rank 1
Nick asked on 12 Aug 2022, 02:39 PM

Hi,

We have a grid with a cell where you can upload a file. we use javascript and JQuery.

The user uploads the file using Chrome and the file is saved properly into the database and the grid is refreshed. If the user tries immediately to download the file it takes more than 30 minutes to be downloaded and if you try to close the Chrome window you get a browser message that there is "downloading in progress".   

Could someone explain this strange behavior? is it something that has to do with the kendo grid? If the user closes the chrome window as soon as the file is uploaded and saved and then opens a new window and tries to download, the file is downloaded immediately!

This strange behavior described above does not occur in Firefox.

Any hint is very much appreciated!

Nick

Neli
Telerik team
commented on 17 Aug 2022, 10:18 AM

Hi Nick,

From the provided information I am not sure about what could be the cause of the observed problem. As far as I understand there are no issues while uploading files in the Grid. Are you using the Kendo Upload for uploading files? Could you please send us some more details about the implementation for downloading a file? Is there a custom 'Download' button in the Grid or is it a different kind of scenario? 

Looking forward to your reply.

Regards,

Neli

Nick
Top achievements
Rank 1
commented on 18 Aug 2022, 03:03 PM

Hi Neli,

Thank you very much for your response!

We don't use Kendo Upload to upload the files. We use the attached functions of the "upload file to grid.txt".

To download the file, when the user clicks on the cell, if the cell is of type "file attachment" the attached script "filedownload.txt" is triggered. That piece of code calls a REST API to retrieve the file that is stored in the database. Then the code converts it from base64 to blob to download it. In the grid, we don't keep the blob but the id of the blob file in the database.

I wanted to stress that this downloading works fine if you upload the file, then close ALL the Chrome browser windows, then open one window again and try to download.   

It doesn't work if you try to download the file immediately after you have uploaded it. It takes more than 30' to download!

In Firefox all scenarios work without any problem.

 

Neli
Telerik team
commented on 23 Aug 2022, 10:49 AM

Hi Nick,

It is hard to suggest a possible reason for the observed issue withut being able to debug. However, could you please try to refresh the Grid right after a file has been uploaded and test if this will change the current behavior?

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/methods/refresh

Regards,

Neli

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Nick
Top achievements
Rank 1
Share this question
or