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

How to avoid temporary File upload while using Kendo().Upload() , Can we direclty save to DB ?

5 Answers 336 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Bankim
Top achievements
Rank 1
Bankim asked on 26 Jul 2016, 02:01 PM
How to avoid temporary File upload while using Kendo().Upload() , Can we directly save to DB ?

5 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 27 Jul 2016, 07:32 AM

Hello Bankim,

If you are referring to the async Upload widget, it makes a regular FormData request and requires a save handler, accepting post requests.

Regards,
Dimiter Madjarov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Bankim
Top achievements
Rank 1
answered on 27 Jul 2016, 07:39 AM

Hello Dimiter,

Thanks for your input. You are right I am talking about Async Upload widget. Kendo().Upload().

Do you have any code snippet or sample/example ? so I can create handler at server side and avoid temporary file creation & save directly to DB.

Please let me know once you get chance.

 

0
Dimiter Madjarov
Telerik team
answered on 27 Jul 2016, 07:55 AM

Hello Bankim,

There is no need to create a temporary file. You could directly save the file in the handler, similarly to our demos:

http://demos.telerik.com/aspnet-mvc/upload/async

Regards,
Dimiter Madjarov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Bankim
Top achievements
Rank 1
answered on 27 Jul 2016, 01:44 PM

Hello Dimiter,

sorry I was not clear while asking my concern.

While using Kendo().Upload() async upload feature : 1) In Dev , it is absolutely fine and loading file to 100% in no time. (max 5-10 sec, if file size is around 200 mb) 2) In QA, It is taking around 11 min for 61 mb file and reaching gradually to 100% status on kendo upload control.

And Actual upload from server to Db would start only after above 100% completing in control. I hope I am clear now.

So my concern is how would I minimize that time, because in most of the cases my it never reach to server code and it is getting failed beyond 40 mb files.

Any specific value for transferProfile  (MTOM or Base64 or UCF) or any other setting needs to follow for such upload.

Please let me know

Regards,

Bankim

 

 

0
Dimiter Madjarov
Telerik team
answered on 28 Jul 2016, 07:07 AM

Hello Bankim,

There is no specific Upload widget related option that influences this behavior. I would suggest to remove the widget and upload the file with a regular request to isolate the time consume problem and pin point the reason for it, as I assume it is related to server configuration instead.

Regards,
Dimiter Madjarov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Upload
Asked by
Bankim
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Bankim
Top achievements
Rank 1
Share this question
or