Unhandled exception : The file attached is not valid file error

Hi,

If you are using the Async file uploader control in AJAX Toolkit inside an update panel. when you select a file to upload, after selection, the file uploader control will be showing with Red background in the text field.

The fix for this problem is: click on the properties of the async file uploader control -> find ClientIDMode property -> change it from inherit to Auto ID.

Now try to build your web app. and select a file, The control will show the selected file with green background which means it is a valid input file validation being done by the control itself.

Enjoy !!!


Regards,Mostafa Arafa
twitter.com/mostafaelzoghbi

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>