The setting of allowable file types is not supported in browser forms. Therefore, if you want to prevent users from uploading files that are of a specific type, you’ll have to write code in the Validating event of a File Attachment control to do so.
In this InfoPath video tutorial, you learned…
- How to add a File Attachment control to a Repeating Table on an InfoPath form template.
- How to add a Validating event to a File Attachment control.
- How to write code that prevents the user from uploading files with file types that are not allowed.
For more information, also see How to encode and decode a file attachment programmatically by using Visual C# in InfoPath on the Microsoft Support web site.
Related Posts
See more InfoPath 2007 videos »

Comments to this post were closed 30 days after it was published.