Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Upload > Where is Telerik.Web.UI.PostedFile defined?
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.

Not answered Where is Telerik.Web.UI.PostedFile defined?

Feed from this thread
  • Stan avatar

    Posted on Jun 28, 2011 (permalink)

    UploadedFiles property returns abstract UploadedFile class. During runtime the control returns concreate Telerik.Web.UI.Posted file. Is this class dynamically generated?

    I am trying to isolate RadUpload with Microsoft Moles unit testing framework and need to return a concreate class derived from UploadedFile. I tried to create my own class but this doesn't compile because of missing InputFieldName property although UploadedFile does not have such property...

    -Stan

  • Genady Sergeev Genady Sergeev admin's avatar

    Posted on Jul 1, 2011 (permalink)

    Hello Stan,

    The class PostedFile is an internal class, this is why you cannot find it. And yes, UploadedFile is an abstract class and PostedFile inherits and implements UploadedFile methods. The UploadedFile class has InputFieldName property defined like this:

    internal abstract string InputFieldName
            {
                get;
            }

    As you can see, it is defined as internal. Unfortunately, it cannot be implemented outside of the Telerik.Web.UI assembly.

    All the best,
    Genady Sergeev
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Upload > Where is Telerik.Web.UI.PostedFile defined?