AllowedMimeTypes not working in RadAsyncUpload

14 posts, 0 answers
  1. Raji
    Raji avatar
    56 posts
    Member since:
    Jul 2011

    Posted 27 Feb 2012 Link to this post

    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
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 01 Mar 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Raji
    Raji avatar
    56 posts
    Member since:
    Jul 2011

    Posted 01 Mar 2012 Link to this post

    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
  5. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 06 Mar 2012 Link to this post

    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.
  6. Max
    Max avatar
    34 posts
    Member since:
    Dec 2011

    Posted 16 Mar 2012 Link to this post

    Second this, validation is important and useful.
  7. Raji
    Raji avatar
    56 posts
    Member since:
    Jul 2011

    Posted 16 Mar 2012 Link to this post

    Hi Peter,

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

    Thanks,
    Raji
  8. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 20 Mar 2012 Link to this post

    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.
  9. Sunil
    Sunil avatar
    10 posts
    Member since:
    Sep 2011

    Posted 09 Aug 2013 Link to this post

    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.
  10. Sunil
    Sunil avatar
    10 posts
    Member since:
    Sep 2011

    Posted 09 Aug 2013 Link to this post

    Hello,

    AllowedMimeType is working in RadUpload in all browser even IE than why not working in RadAsyncUpload? 
  11. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 14 Aug 2013 Link to this post

    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.
  12. Aru
    Aru avatar
    1 posts
    Member since:
    Nov 2011

    Posted 26 Nov 2013 Link to this post

    Is it implemented now?
  13. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 28 Nov 2013 Link to this post

    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.
  14. Joe
    Joe avatar
    3 posts
    Member since:
    Dec 2015

    Posted 15 Dec 2015 in reply to Peter Filipov Link to this post

    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.

  15. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 18 Dec 2015 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017