Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
Example of IGUploadStatusHandler.ashx
posted

Any one have an example of the  IGUploadStatusHandler.ashx referenced in this example:

http://jsfiddle.net/gh/get/jquery/1.9.1/igniteuisamples/jsfiddle-samples/tree/master/EN/HtmlSamples/file-upload/basic-usage/

Would like to be able to just get file name and I should be able to go from there.

  • 29417
    Offline posted

     Hello Greg , 

    I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know. 

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

     

  • 29417
    Offline posted

    Hello Greg ,

     

    Thank you for posting in our forum.

     

    That url ( http://igniteui.com/IGUploadStatusHandler.ashx ) is handled by a HTTP handler that comes as part of the Infragistics.Web.MVC dll . In order to use it in your own application you would need to register that handler in your config file. For example:

    <httpHandlers>

             <add verb="GET" type="Infragistics.Web.Mvc.UploadStatusHandler"

                             path="IGUploadStatusHandler.ashx" />

        </httpHandlers>

     

    You can find detailed information on the HTTP Handler and Module that the igUpload is using and also information on how to configure it here:

    http://help.infragistics.com/Help/Doc/jQuery/2013.2/CLR4.0/HTML/igUpload_Using_HTTP_Handler_and_Modules.html

    Let me know if you have any questions.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer II

    Infragistics, Inc.

    http://es.infragistics.com/support

     

  • 5
    posted

    Hi Greg,

    I´ve been trying to make a FileUpload sample works in my computer. This "IGUploadStatusHandler.ashx" works fine:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using Infragistics.Web.Mvc;

    namespace KnowHowFS.Handlers
    {
    /// <summary>
    /// Summary description for IGUploadStatusHandler
    /// </summary>
    public class IGUploadStatusHandler : UploadStatusHandler
    {

    //public void ProcessRequest(HttpContext context)
    //{

    //}

    //public bool IsReusable
    //{
    // get
    // {
    // return false;
    // }
    //}
    }
    }

    You also have to add in your web.config these code lines:

    <configuration>

      <appSettings>

    <add key="fileUploadPath" value="~/Uploads" />
    <!-- This is the max the control will allow: up to 2GB -->
    <add key="maxFileSizeLimit" value="2147483647" />
    <add key="bufferSize" value="16384" />
    <add key="allowedMIMEType" value="*" />

      </appSettings>

    ...

    <system.web>

    <httpModules>
    <add name="IGUploadModule" type="Infragistics.Web.UI.EditorControls.UploadModule"/>
    </httpModules>

    </system.web>

    ...

      <system.webServer>

    <handlers>

    <add name="IGUploadStatusHandler" path="~/Handlers/IGUploadStatusHandler.ashx"
    verb="*" type="Infragistics.Web.UI.EditorControls.UploadStatusHandler"
    preCondition="integratedMode" />

    </handlers>

    <security>
    <requestFiltering>
    <!-- Increased maxAllowedContentLength from default of 300MB to 2GB. -->
    <requestLimits maxAllowedContentLength="2147483648"></requestLimits>
    </requestFiltering>
    </security>

    <modules runAllManagedModulesForAllRequests="true">
    <add name="IGUploadModule" type="Infragistics.Web.Mvc.UploadModule"
    preCondition="managedHandler" />
    </modules>

      </system.webServer>

    ...

    I have a MVC application. My problem is that I´m not getting the Controller methods get called. I think the IGUploadModule is wrapping all the functionality. I´ll tell you if I get it.

    I hope this reply helps you.

    Keep in touch.

    Hugo.