Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

ajaxToolkit - AjaxFileUpload: posted file?

$
0
0

How can I access the posted file of a AjaxFileUpload control? (I am limiting the max files to 1).

With the regular file upload, I would use:

FileUpload1.PostedFile

but this doesn't seem to be a property of the AjaxFileUpload Control?

My context is this:

Once the user has added a file to the file upload control, I want to check the MIME Type to ensure it's an image - png or jpeg. I don't want to rely on the extension. I have the code for that but I need to access the posted file.

Also, I'd like to access the File Name of the posted file.


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>