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

How do you get HttpPostedFile

1 Answer 237 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 10 Jul 2013, 05:48 AM
Hi
I'm using AsyncUpload and need to get httppostedfile from it.
Is there a way to convert UploadedFile to HttpPostedFile?

Thanks

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

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 11 Jul 2013, 09:43 AM
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.

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.
Edward
Top achievements
Rank 1
commented on 02 Nov 2022, 04:23 PM | edited

...
Rumen
Telerik team
commented on 07 Nov 2022, 12:12 PM

Hi Edward,

I just replied to your other forum post which looks related - how do I access the HttpPostedFile file properties working with asyncUpload.

Tags
AsyncUpload
Asked by
Peter
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or