Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Upload > Allowedfileextensions not working
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Allowedfileextensions not working

Feed from this thread
  • William Gollnick avatar

    Posted on Mar 20, 2007 (permalink)

    I have tried setting this property every way I can. Using the .NET1 version. Including the .zip and .txt .... still nothing.
    Along with this .. up uploaded file count always is 0 .. even though the file makes it to the save location. Whats up?

    gollnick

  • Petya Petya admin's avatar

    Posted on Mar 21, 2007 (permalink)

    Hello William,

    Unfortunately, the information you provide is not sufficient for us to answer your questions. Please, review the following links which describe how to achieve some of the functionality you experience difficulties with:

    Online Integrated Validation Example
    Help Article About Integrated Validation
    Help Article about Manipulating the Uploaded Files

    In case you continue having problems, please send us a sample project demonstrating the undesired behavior as well as some information about the version of the control, browser, and language you use.

    Best wishes,
    Petya
    the telerik team

  • John Chatt avatar

    Posted on May 9, 2011 (permalink)

    The code for your first example (http://www.telerik.com/demos/aspnet/Upload/Examples/IntegratedValidation/DefaultCS.aspx)
    does not appear to function. I am still allowed to select unsupported files and furthermore i can upload them. The process does not fail until after the entire unsupported file is uploaded. This seems broken since the AllowedFileExtensions is set.

    I have tried putting the supported extensions in the AllowedFileExtensions propery many different ways. each does nothing to prevent the selections of unsupported files.

    How can I prevent a client from having to sit through an entire upload before warning them that the file they selected is not supported?

  • Genady Sergeev Genady Sergeev admin's avatar

    Posted on May 11, 2011 (permalink)

    Hello John Chatt,

    RadUpload can't filter the files so that only the allowed ones are shown. It is that such features are not provided by the browsers. As you have noticed, the files are validated after they were uploaded. If you want to check the extensions on the client, please follow the advice shown here. It is for RadUpload for ASP.NET Ajax, but with slight code changes it will work for RadUpload Classic as well.

    What you need to change is:

    1) use GetRadUpload instead of $find
    2) Use ValidateExtensions instead of validateExtensions.

    All the best,
    Genady Sergeev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  • William Gollnick avatar

    Posted on May 11, 2011 (permalink)

    Wow ..so this is weird. How did this John get into one of my questions (from 4 years ago) and poise a new question???? Broken email links??

    thanks

    gollnick

  • Genady Sergeev Genady Sergeev admin's avatar

    Posted on May 11, 2011 (permalink)

    Hello William Gollnick,

    This is a public forum thread and ti is visible to everyone. This means that anybody can post a new replay or take a part in the discussion.

    All the best,
    Genady Sergeev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Upload > Allowedfileextensions not working