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

Using custom HttpHandler in SharePoint

6 Answers 52 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Karl Mikesell
Top achievements
Rank 1
Karl Mikesell asked on 29 Jul 2011, 10:33 PM
I am using RadAsyncUpload to send content into SharePoint using HttpHandlerUrl="~/_vti_bin/myHandler.ashx", the content is delivered, and this handler replies with the FileInfo Json which includes the SharePoint information required client-side (without metaData)

Have no idea what this represents, so leaving it empty:
"metaData":"/wEFsAF7IlRlbXBGaWxlTmFtZSI6InFobXhpZGRyLjN4NSIsIkFzeW5jVXBsb2FkVHlwZU5hbWUiOiJUZWxlcmlrLldlYi5VSS5VcGxvYWRlZEZpbGVJbmZvLCBUZWxlcmlrLldlYi5VSSwgVmVyc2lvbj0yMDExLjEuNDEzLjM1LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPTEyMWZhZTc4MTY1YmEzZDQifexeAUe9Qntvi6cibJXmRsELub3C"

The question is related to the querystring values included with the request to the handler
_vti_bin/myHandler.ashx?type=rau&RadUrid=8e407d48-f46e-4360-8cdb-5b44b384e2870; How should these values be used in a custom handler.

Otherwise everthing is working well, pushing content into SharePoint.

More information would be most helpful.

6 Answers, 1 is accepted

Sort by
0
Accepted
Genady Sergeev
Telerik team
answered on 03 Aug 2011, 03:26 PM
Hello Karl Mikesell,

These values are not needed when custom handler is used. I believe that this is a bug in RadAsyncUpload. I will log it and we will review the case. Is this a show stopper for you? You can safely leave them as they are, it won't break the upload in any way. I've also updated your telerik points for pointing this issue to us.

All the best,
Genady Sergeev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Karl Mikesell
Top achievements
Rank 1
answered on 08 Aug 2011, 08:45 PM
I am able to upload selected documents into SharePoint, not a show stopper.
0
Karl Mikesell
Top achievements
Rank 1
answered on 10 Aug 2011, 03:38 PM
I am only able to upload with Silverlight enabled, nothing is sent to the handler when disabled below.

        Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function() { return false; }
        Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function() { return false; }

RadUploadProgressHandler.ashx?AsyncProgress=true&RadUrid=98b94ef4-7309-4d26-8931-2031e97ade500&_=1312986729299 is endlessly called with the response:  var rawProgressData = {InProgress:false,ProgressCounters:false};

Is Silverlight or Flash required to send file to custom HttpHandler?

0
Karl Mikesell
Top achievements
Rank 1
answered on 10 Aug 2011, 06:56 PM
Also, when file is uploaded the following querystring is included:
...ashx?type=rau&RadUrid=645700af-0a3a-4350-b2e2-9acd436773b11

The progress handler however does not have the same RadUrid:
...ashx?AsyncProgress=true&RadUrid=645700af-0a3a-4350-b2e2-9acd436773b10&_=1312998515331

I can assume the _ querystring is some type of tick.

How to stop the progress handler requests client-side?
0
Karl Mikesell
Top achievements
Rank 1
answered on 10 Aug 2011, 09:56 PM
I was able to upload without silverlight.  Tested this using IE 9 x64, so flash or silverlight cannot run.

The attached file below shows an exception when a post-back is performed, but everything was handled client-side using the custom HttpHandler.  Should the file collection client-side be cleared before post-back?

Using custom HttpHandlerUrl & ProgressHandlerUrl, so nothing should go back to server on post-back.

Ideas?
0
Cat Cheshire
Top achievements
Rank 1
answered on 16 Aug 2011, 05:42 PM
Maybe you can paste here some working code?
For example the custom HttpHandlerUrl & ProgressHandlerUrl and your client-side implementation.
Tags
AsyncUpload
Asked by
Karl Mikesell
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Karl Mikesell
Top achievements
Rank 1
Cat Cheshire
Top achievements
Rank 1
Share this question
or