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

AllowedMimeTypes not working in RadAsyncUpload

13 Answers 318 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Raji
Top achievements
Rank 1
Raji asked on 27 Feb 2012, 08:52 PM
Hi,

I am tried to set the AllowedMimeTypes property as shown below, but its not working.
string[] allowedMimeTypes = System.Configuration.ConfigurationManager.AppSettings.Get("epNMAllowableMimeTypes").Split(',');
                if (allowedMimeTypes.Length > 0)
                    RadAsyncUpload1.AllowedMimeTypes = allowedMimeTypes;

In web.cong the Mimetypes are declared as
<add key="epNMAllowableMimeTypes" value="application/pdf,application/msword,application/x-dot,application/vnd.ms-excel,image/tiff,image/png,image/jpeg,image/gif"/>

I am using Telerik.Web.UI.dll(Ver 2010.3.1317.20), IE 7.0 browser, .Net 2.0

I found the below link where something related to this peoperty was fixed.
http://www.telerik.com/products/aspnet-ajax/whats-new/release-history/q3-2010-sp1-version-2010-3-1215.aspx

Thanks,
Raji

13 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 01 Mar 2012, 06:08 PM
Hi Raji,

In general AllowedMimeTypes property is inherited from RadUpload control and has no influence on RadAsyncUpload. We will consider , however , implementing such logic (that will take into account  AllowedMimeTypes)

 I will let you know as soon as we take our decision.

Greetings,
Peter Filipov
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
Raji
Top achievements
Rank 1
answered on 01 Mar 2012, 09:22 PM
Hi Peter,

Is their any way that I can validate the the MImeTypes? You have a demo to display the message when file validation fails. I need similar to that to validate the mimetypes.

Thanks,
Raji
0
Peter Filipov
Telerik team
answered on 06 Mar 2012, 01:56 PM
Hi Raji,

I prepared a sample project for you. Please review the attachment.

Please have in mind that such verification is possible only in browsers that support FileApi (Firefox, Chrome, Safari).

Kind regards,
Peter Filipov
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
Max
Top achievements
Rank 1
answered on 16 Mar 2012, 08:45 AM
Second this, validation is important and useful.
0
Raji
Top achievements
Rank 1
answered on 16 Mar 2012, 06:46 PM
Hi Peter,

I use IE 7.0 so I have not tried your scripts. Will it work still in IE?

Thanks,
Raji
0
Peter Filipov
Telerik team
answered on 20 Mar 2012, 11:05 AM
Hello,

@Max - yes I agree that is important, but not every browser support FileApi and it is not possible to apply that functionality for every upload module.

@ Raji - unfortunately IE7 is an old browser, which does not implement FileApi interface and the example will not work under it.

Kind regards,
Peter Filipov
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
Sunil
Top achievements
Rank 1
answered on 09 Aug 2013, 02:52 PM
Hello,

Can you please let me know that there are any way by which we can check allowedMimeTypes in RadAsyncUpload control?

We can check it in RadUpload but I need to check it in RadAsyncUpload.
0
Sunil
Top achievements
Rank 1
answered on 09 Aug 2013, 03:02 PM
Hello,

AllowedMimeType is working in RadUpload in all browser even IE than why not working in RadAsyncUpload? 
0
Peter Filipov
Telerik team
answered on 14 Aug 2013, 10:10 AM
Hi Sunil,

Straight to the point. RadAsyncUpload control has AllowedMimeTypes property but its functionality is not implemented. The above property is part of some legacy code which RadAsyncUpload control inherited from its predecessor RadUpload. The issue is logged and we are going to implement for the next releases.

Regards,
Peter Filipov
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
Aru
Top achievements
Rank 1
answered on 26 Nov 2013, 08:23 AM
Is it implemented now?
0
Peter Filipov
Telerik team
answered on 28 Nov 2013, 05:45 PM
Hi Aru,

The functionality is our product backlog and we will inform you as soon as its implementation is ready.

Regards,
Peter Filipov
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
Joe
Top achievements
Rank 1
answered on 16 Dec 2015, 12:17 AM

Hi, has this been implemented yet?  Sounds like it would be extremely useful for filtering out incorrect files.

If not, it shouldn't be exposed to end-developers.

0
Peter Filipov
Telerik team
answered on 18 Dec 2015, 01:10 PM
Hi Joe,

We understand that it's been a while since we have logged this task. Unfortunately we had many other stories to complete which have higher priority. We will do our best to deliver it as soon as we could.

Regards,
Peter Filipov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
AsyncUpload
Asked by
Raji
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Raji
Top achievements
Rank 1
Max
Top achievements
Rank 1
Sunil
Top achievements
Rank 1
Aru
Top achievements
Rank 1
Joe
Top achievements
Rank 1
Share this question
or