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.