How do you get HttpPostedFile

2 posts, 0 answers
  1. Peter
    Peter avatar
    12 posts
    Member since:
    Nov 2008

    Posted 10 Jul 2013 Link to this post

    I'm using AsyncUpload and need to get httppostedfile from it.
    Is there a way to convert UploadedFile to HttpPostedFile?


    if (IndividualAsyncUpload.UploadedFiles.Count > 0)
        UploadedFile file = IndividualAsyncUpload.UploadedFiles[0];

  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 11 Jul 2013 Link to this post

    Hello Peter,

    It is not possible to convert the UploadedFile object to HttpPostedFile. Keep in mind that UploadedFile object has the same properties as the HttpPostedFile.

    Peter Filipov
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top