it is possible to upload file with ajax

Thread is closed for posting
4 posts, 0 answers
  1. SamVanity
    SamVanity avatar
    154 posts
    Member since:
    Apr 2006

    Posted 11 Apr 2008 Link to this post

    Hi,

    Have you thought about updating the upload control to allow
    1. Ajax upload w/ progress bar
    2. Memory Optimization w/ IIS 7 compatibility and Medium Trust environment support?
    This component seems to do all of the above. I am not sure why you can't implement any of the above..?
  2. Dimcho
    Admin
    Dimcho avatar
    45 posts

    Posted 15 Apr 2008 Link to this post

    Hello Sam Van,

    The current version of the RadUpload for ASP.NET AJAX does not support uploading files with AJAX due to a limitation of the XmlHttpRequest component which is used in all AJAX frameworks for asynchronous calls to the application. However, we suggest a workaround that makes possible the use of  the RadUpload control with AJAX. You can take a look at RadUpload's AJAX support for more details. We have entered the issue in our feature requests list for future consideration and investigation.

    Currently, RadUpload Prometheus works only in IIS7 Classic mode and Cassini. It does not support Integrated IIS7 mode. At the moment we are investigating the possibilities to handle the problem and our plans are to make the upload control support Integrated IIS7 mode as well.

    Regarding the Medium Trust support, we will continue researching the problem, but for now we are not able to give any estimate when the RadUpload control will support Medium Trust. At the moment the only possibility to run your application in Medium trust is to put Telerik.Web.UI’s assembly in the GAC.


    All the best,
    Dimcho
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. SamVanity
    SamVanity avatar
    154 posts
    Member since:
    Apr 2006

    Posted 15 Apr 2008 Link to this post

    I need you to clarify a few things for me:

    1) if Ajax upload is not possible for ALL things that use the xmlhttprequest component, then what is the method that the component vendor I posted above uses to upload via Ajax?

    2) did you mean that the entire RadUpload Prom did not work AT ALL in IIS 7 Integrated mode, or did you mean just the memory optimization part of the RadUpload Prom?

    3) same to the medium trust question - I am actually using the RadUpload in my app running in medium trust environment... Did you mean just the memory optimization part that does not work in medium trust?
  4. Dimcho
    Admin
    Dimcho avatar
    45 posts

    Posted 18 Apr 2008 Link to this post

    Hello Sam Van,

    All AJAX frameworks use an XmlHttpRequest component for asynchronous calls to the application which imposes some limitations. The standard html file input element which the RadUpload control uses for selecting files requires a full postback to upload a file. However, there are some workarounds for uploading the selected files with AJAX. One of these workarounds is the one described in the Uploading Files with AJAX help article. Another possible workaround is using an IFRAME element inside which the RadUpload control is placed. This scenario also requires a postback but the postback happens in the inner document inside the IFRAME. This seems to be way used for uploading files with Ajax in the FileUpload component you suggested for comparison.

    Without RadMemoryOptimization the RadUpload control works in IIS7 Integrated mode as well as in medium trust environment. The problem appears only in case the Memory optimization is enabled because as I mentioned in my previous reply RadMemoryOptimization requires ReflectionPermission in order to operate correctly and in MediumTrust ReflectionPermission is not available.
     
    Kind regards,
    Dimcho
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top