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

Flash no longer working

2 Answers 46 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Andrew Dixon
Top achievements
Rank 1
Andrew Dixon asked on 06 Aug 2012, 02:12 AM
Hi,

I've been using version 2010.1.315.35 of the ASP.NET AJAX tools for quite some time now.  I'm in the middle of upgrading to the latest version (2012.2.724.35).  I use AsyncUpload in my application and use Flash in my application too.  Up until now version 2010.1.315.35 AsyncUpload has been using Flash in Firefox and Chrome (versions 14.01 and 21.0 respectively) but now that I've upgraded to 2012.2.724.35 flash is no longer being used and it appears to be falling back to using HTML.  I make extensive use of file filters so it's important that I can use AsyncUpload in flash mode.  I've noticed also that the demo at http://demos.telerik.com/aspnet-ajax/upload/examples/async/validation/defaultcs.aspx?product=asyncupload has the same problem.

My AsyncUpload control is specified as follows:

<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server"
                                    OnClientFileUploadFailed="RadAsyncUploadOnUploadFailed"
                                    OnClientFileSelected="RadAsyncUploadOnFileSelected"
                                    OnClientFileUploaded="RadAsyncUploadOnFileUploaded"
                                    OnClientFileUploadRemoved="RadAsyncUploadOnUploadRemoved">
                                    <Localization Select="<%$ Resources:Localization, AttachFile %>" />
                                    <Localization Cancel="<%$ Resources:Localization, Cancel %>" />
                                    <Localization Remove="<%$ Resources:Localization, Remove %>" />
                            </telerik:RadAsyncUpload>
Is there something different I need to do in 2012.2 to get flash working?

Thanks
Andrew Dixon

2 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 08 Aug 2012, 03:56 PM
Hello Andrew,

 
If you want to use Flash upload module with the latest version you can add the following code:

<script type="text/javascript">
    Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable = function () { return false; }
 Telerik.Web.UI.RadAsyncUpload.Modules.Silvelight.isAvailable = function () { return false; }
</script>

Please have in mind that in spite of the possibility above we strongly recommend using the default FileApi upload module because some errors may occur with some versions of the Flash plug-in.  

As for the File filtering functionality- it is not supported yet under FileApi but one can still only select the desired file extensions despite all the files are seen in the pop up window.

Hope this information will be helpful.
Greetings,
Plamen
the Telerik team
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 their blog feed now.
0
Mohammed
Top achievements
Rank 2
answered on 15 Aug 2012, 12:44 PM
Hi,
thanks I was searching for this information.
Tags
AsyncUpload
Asked by
Andrew Dixon
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Mohammed
Top achievements
Rank 2
Share this question
or