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

ASync Upload - Is this a bug ??

5 Answers 134 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Seabus
Top achievements
Rank 1
Seabus asked on 24 Jun 2011, 11:36 PM
Hi,

I have an ASync Upload on a web page and the only property manually added to it is to restrict the maximum number of files to 1. (  MaxFileInputsCount="1" )

I discovered some sort of issue  and here's how to replicate : (1) Open an Excel File and leave it open - don't close it (2) Select that same Excel file for upload via the Telerik ASync Upload control (3) Remove the file  from the Telerik ASync Upload Control using the Remove button---> The result is that the Telerik control seems to totally disappear from the page and this is very bad:-)

Any clue on what's going on ? I'm pretty sure this is a bug.


Seabus
P.S - I'm pretty sure I'm using the latest version

5 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 28 Jun 2011, 11:30 AM
Hello Seabus,

We are aware of that issue. It appears when the Flash module is used to upload files and the uploaded file is invalid. The issue will be fixed in the next release - Q2 2011.
To avoid the issue, please use the following workaround to disable the Flash module:

Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; };

Regards,
Peter Filipov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Seabus
Top achievements
Rank 1
answered on 28 Jun 2011, 04:44 PM
Hi Peter,

I'm glad that you are aware of this issue...
Could you provide some guidance on where I have to insert that JavaScript line of code ?
I'm good at ASP.NET and C# ..not that much into JavaScript

Seabus
0
Peter Filipov
Telerik team
answered on 30 Jun 2011, 05:03 PM
Hi Seabus,

Please place the script declaration after the closing form tag </form>. E.g. :
</form>
<script type="text/javascript">
 Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function ()
{ return false; };
</script>

Best wishes,
Peter Filipov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Seabus
Top achievements
Rank 1
answered on 11 Jul 2011, 03:04 AM
Hi,

The only issue is that my <form> begins and ends in the master page.
If I put your code snippet after </form> in my master page I get this error:
Microsoft JScript runtime error: 'Telerik' is undefined

The page where I have my telerik upload control has no form tag :-)
So what should I do ?

Sebastian
0
Peter Filipov
Telerik team
answered on 12 Jul 2011, 01:37 PM
Hello Seabus,

Please put the sample code below into RadScriptBlock at the and of the content page. E.g.:
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server">
    </telerik:RadAsyncUpload>
    <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
        <script type="text/javascript">
            Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function () { return false; };
        </script>
    </telerik:RadScriptBlock>
</asp:Content>


All the best,
Peter Filipov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
AsyncUpload
Asked by
Seabus
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Seabus
Top achievements
Rank 1
Share this question
or