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

Upload wont work..

6 Answers 132 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 20 Oct 2013, 03:25 AM
A simple upload .. almost most of the code copied from the example provided by Kendo ..
But wont work.. will error after uploading..

http://codeviewer.org/view/code:37e3

This wont work on a .aspx file not in a html..
What am i doing wrong?

6 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 21 Oct 2013, 07:03 AM
Hello Chris,


Indeed most of the provided code is from our demo. Could you please elaborate a bit more and specify what exactly is not working? You could check the Console and the Network tabs of the developer tools of your browser in order to inspect the behavior.

I am looking forward to hearing from you.

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Chris
Top achievements
Rank 1
answered on 21 Oct 2013, 09:27 PM
I am actually quite lost.. may be i left out something in the documentation that I should have done.. I hope some one can help me with this..

I tried to upload 2 files... one 3 MB and another 218KB. the 218 KB file uploaded to 100% .. and reported error..
The 3 MB file was uploaded 13% and failed... (13% is 394KB..)
 
This is what the console says..    for a 3032 KB..  (decs order)
Complete
Error (upload) ::
09031301.PDF (3032 KB)Upload progress :: 13% ::
09031301.PDF (3032 KB)Upload progress :: 8% ::
09031301.PDF (3032 KB)Upload progress :: 4% ::
09031301.PDF (3032 KB)Upload progress :: 0% ::
09031301.PDF (3032 KB)Upload ::
09031301.PDF (3032 KB)
Select :: 09031301.PDF (3032 KB)

the network
the post was aborted...
URL    Method    Result    Type    Received    Taken    Initiator    Wait‎‎    Start‎‎    Request‎‎    Response‎‎    Cache read‎‎    Gap‎‎
/RandD/save   [No method name mentioned]     (Aborted)        0 B    16 ms    XMLHttpRequest    3276    0    0    16    0    15

There is no mention of the request headers if you go in details...


Console for 218K file

Complete
Error (upload) :: BarclayID.png (218 KB)
Upload progress :: 100% :: BarclayID.png (218 KB)
Upload progress :: 100% :: BarclayID.png (218 KB)
Upload progress :: 59% :: BarclayID.png (218 KB)
Upload progress :: 0% :: BarclayID.png (218 KB)
Upload :: BarclayID.png (218 KB)
Select :: BarclayID.png (218 KB)

The network details.. the post did not abort ..
URL    Method    Result    Type    Received    Taken    Initiator    Wait‎‎    Start‎‎    Request‎‎    Response‎‎    Cache read‎‎    Gap‎‎
/RandD/save    POST    405    text/html    4.00 KB    32 ms    XMLHttpRequest    13774    0    16    0    0    0

Key    Value
Request    POST /RandD/save HTTP/1.1
Accept    */*
Content-Type    multipart/form-data; boundary=---------------------------7dd220271b0ef0
Referer    http://localhost:54199/RandD/TestUploadHtml.htm
Accept-Language    en-US
Accept-Encoding    gzip, deflate
User-Agent    Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)
Host    localhost:54199
Content-Length    223171
DNT    1
Connection    Keep-Alive
Cache-Control    no-cache
Cookie    .ASPXAUTH=F1AF9D4.......................................
0
Chris
Top achievements
Rank 1
answered on 23 Oct 2013, 01:59 PM
Do I have to create a server side page to get the post event.. it is trying to reach /RandD/save  (/RandD is the folder/namespace where the page is stored) ..

I have a webservice and i need to send the uploaded data to the webservice.. how do i do that?
0
Dimiter Madjarov
Telerik team
answered on 23 Oct 2013, 03:44 PM
Hi Chris,


From the provided information it seems that the issue is not on the client side. The provided sample code is working correctly on my side and from the information from your last post it seems that the requests are sent correctly too.

I would suggest you to inspect the issue on the backend. It seems that there is some file upload limit, which is blocking the requests.

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Chris
Top achievements
Rank 1
answered on 04 Nov 2013, 10:56 PM
Dimiter -

Thats exactly what am I asking.. I dont know what I have to do in the backend with the Kendo Upload control...
this is what i want...
I have an Kendo Web Upload control...  Then on uploading .. the file data to should be passed to a WebMethod defined in a web service(.asmx) ..

What exactly i have to enable/do to get the data read from the file...


0
Dimiter Madjarov
Telerik team
answered on 06 Nov 2013, 10:04 AM
Hi Chris,


Currently we don't have an example/demo on uploading a file to an asmx web service. I found the following pages on the topic that might be helpful (there could be others too):
ASMX file upload
How to upload file to asmx web service
File upload via web service


Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Upload
Asked by
Chris
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Chris
Top achievements
Rank 1
Share this question
or