No Progress with ManualUpload="true"?

4 posts, 0 answers
  1. Brian Azzi
    Brian Azzi avatar
    65 posts
    Member since:
    Mar 2010

    Posted 24 Jun 2013 Link to this post

    Hello... so I'm struggling with something here. I really want to manually "start" the upload process, so I am trying to use ManualUpload=true. As I understand it though, this takes away the advantage of using SL or Flash. Why was this done? Why do both of those have to be automatic all of the time?

    At any rate, the problem I have now is that whenever I am in Manual mode, I have no progress (either inline progress or progress using the RadProgressArea). When I simply flip to automatic mode, progress works fine.

    Any ideas?

    Thanks,
    -Brian

    The following code works fine with ManualUpload false, but not with Manual Upload true:

    <telerik:RadAsyncUpload ID="AsyncUpload1" 
                                ClientIDMode="Static"
                                MultipleFileSelection="Disabled"
                                ManualUpload="true"
                                UploadedFilesRendering="BelowFileInput" 
                                InputSize="50"
                                OnClientFileSelected="AsyncUpload1_OnClientFileSelected"
                                UseApplicationPoolImpersonation="true"
                                runat="server">
                                <Localization Select="Select File" />
                            </telerik:RadAsyncUpload>
  2. Brian Azzi
    Brian Azzi avatar
    65 posts
    Member since:
    Mar 2010

    Posted 24 Jun 2013 Link to this post

    Bah, another case of things being different in iFrame mode (which is used during manual mode)... i had simply missed this line in the documentation regarding having to register the RadUploadHttpModule (sigh):

    If there is neither Flash nor Silverlight available, a little tweak in the web.config is needed. More specifically, one needs to register the RadUploadHttpModule/Handler into the web.config. Instructions on how to do that can be found here.

    At any rate, there it is if anyone else needs it...

    Still, to Telerik: why can't SL / Flash modes offer a manual upload mode? 

    Thanks,
    -Brian
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 25 Jun 2013 Link to this post

    Hi Brian,

    Control expects to start uploading manually. Progress indicator will be displayed if you call startUpload():
    <telerik:RadAsyncUpload ID="AsyncUpload1"
                ClientIDMode="Static"
                MultipleFileSelection="Disabled"
                ManualUpload="true"
                UploadedFilesRendering="BelowFileInput"
                InputSize="50"
                OnClientFileSelected="AsyncUpload1_OnClientFileSelected"
                UseApplicationPoolImpersonation="true"
                runat="server">
                <Localization Select="Select File" />
            </telerik:RadAsyncUpload>
            <input id="btnUpload" type="button" value="Start Upload" onclick="Upload()" />
            <telerik:RadProgressArea ID="RadProgressArea1" runat="server"></telerik:RadProgressArea>

    function Upload() {
                  var upload = $find('AsyncUpload1');
                  upload.startUpload();
              }

    Silverlight and Flash modules don't support manual upload, because there are many errors in their different versions and it is not possible for us to handle all of them. From the other side IFrame is the most stable module.

    Regards,
    Hristo Valyavicharski
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  5. Brian Azzi
    Brian Azzi avatar
    65 posts
    Member since:
    Mar 2010

    Posted 25 Jun 2013 Link to this post

    Right... I was calling the start upload (I just didn't include that code). In my case, the upload occured but progress was not displayed because I had not registered the correct web.config handlers.

    That's a shame regarding the SL/Flash versions... it must be a nightmare testing out and maintaining three different versions of the control. ;)
Back to Top