<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Validate File Extension in attachement</title><link>https://www.infopathdev.com:443/forums/thread/102271.aspx</link><pubDate>Wed, 22 Apr 2015 19:18:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102271</guid><dc:creator>Mescher</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102271.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102271</wfw:commentRss><description>I made a rules based validation for this kind of an issue for .pdf extensions 

The Expression  (contains(substring(., 33, 300), &amp;quot;AuAHAAZABm&amp;quot;) =False and contains(substring(., 33, 300), &amp;quot;LgBwAGQAZg&amp;quot;)= False and  contains(substring(., 33, 300), &amp;quot;AC4AcABkAGY&amp;quot;)=False )

There are more details on my LinkedIn post for why this works. 
https://www.linkedin.com/pulse/ever-feel-like-program-should-do-something-simple-doesnt-brewer

If there is a lot of interest, I will post more details here.</description></item><item><title>Re: Validate File Extension in attachement</title><link>https://www.infopathdev.com:443/forums/thread/63036.aspx</link><pubDate>Tue, 11 Jan 2011 01:18:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63036</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63036.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63036</wfw:commentRss><description>&lt;p&gt;+1 to what Jimmy wrote except that it&amp;#39;s not in all form templates.&amp;nbsp; It appears that a list form does not have this option in the properties of a file attachment control.&amp;nbsp; A regular form library template has it, but it is sometimes disabled.&amp;nbsp; It looks like it&amp;#39;s Disabled for browser forms but enabled for Filler forms.&amp;nbsp; To be sure, I limited my Filler form template to &amp;quot;docx; xlsx&amp;quot; and it worked well in Filler mode. Interestingly, it actually sets the filter on the popup dialog where you browse for documents.&amp;nbsp; Whatever items you specify as being allowed are the only items that the browse window will let you choose, and it doesn&amp;#39;t let you change the searchable file types.&amp;nbsp; This might be why it doesn&amp;#39;t work in the browser, because this functionality is invoked on the client machine itself, not in the form as a data validation.&amp;nbsp; I then switched my template back to a browser form, and I get an error on the control saying, &amp;quot;Setting allowable file types is not supported in Web browser forms.&amp;quot;&lt;/p&gt;
&lt;p&gt;So, I then&amp;nbsp;thought about using data validation to detect the file type of uploaded docs, but the value stored with the attachment is encoded with tons of characters, so I&amp;#39;m not sure yet if that can be done at the time of upload.&lt;/p&gt;
&lt;p&gt;In conclusion, if you&amp;#39;re just using Filler (rich client) forms, then open the properties of your file attachment control, check the box at the bottom, and insert this text, &lt;em&gt;JPG; PNG; TIFF.&lt;/em&gt;&amp;nbsp; What I found was that this feature is case INSENSITIVE, and the spaces after the semicolon delimiters don&amp;#39;t matter.&amp;nbsp; I tried uppercase, lowercase, space, and no space - all worked, but the semicolon was the key.&lt;/p&gt;</description></item><item><title>Re: Validate File Extension in attachement</title><link>https://www.infopathdev.com:443/forums/thread/63035.aspx</link><pubDate>Tue, 11 Jan 2011 00:39:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63035</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63035.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63035</wfw:commentRss><description>&lt;p&gt;If you open the Attachment control&amp;#39;s property dialog, you should be able to specify which extensions to allow.&lt;/p&gt;</description></item><item><title>Validate File Extension in attachement</title><link>https://www.infopathdev.com:443/forums/thread/63034.aspx</link><pubDate>Tue, 11 Jan 2011 00:08:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63034</guid><dc:creator>mbravo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63034.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63034</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;&lt;p&gt;I&amp;#39;m newbie using InfoPath 2010 and SharePoint 2010, I want to create a new form and validate on it the attachment&amp;#39;s file extensions, to allow only JPG, PNG and TIFF files.&lt;/p&gt;&lt;p&gt;Any ideas about how can I achieve this?&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Martin Bravo&lt;/p&gt;</description></item></channel></rss>