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

No Progress with ManualUpload="true"?

3 Answers 76 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Brian Azzi
Top achievements
Rank 2
Brian Azzi asked on 24 Jun 2013, 08:36 PM
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>

3 Answers, 1 is accepted

Sort by
0
Brian Azzi
Top achievements
Rank 2
answered on 24 Jun 2013, 10:09 PM
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
0
Hristo Valyavicharski
Telerik team
answered on 25 Jun 2013, 11:10 AM
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.
0
Brian Azzi
Top achievements
Rank 2
answered on 25 Jun 2013, 01:35 PM
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. ;)
Tags
AsyncUpload
Asked by
Brian Azzi
Top achievements
Rank 2
Answers by
Brian Azzi
Top achievements
Rank 2
Hristo Valyavicharski
Telerik team
Share this question
or