<?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: checking filename of attachment</title><link>https://www.infopathdev.com:443/forums/thread/20097.aspx</link><pubDate>Tue, 22 May 2007 13:43:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20097</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20097.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20097</wfw:commentRss><description>&lt;p&gt;To jump in here with an additional question. I tested this, so i created a really simple form with just an attachment field, a textbox and a button. First i attached a file, then after i pressed the button the attachment control value was written into the textbox. this gave me like expected not the name of the attachment but the base64 encoded text.&lt;/p&gt;&lt;p&gt;additionally i saved the form to my drive opened it with notepad and copied the complete base64 text out of the xml. funny thing, when i parsed the text back it obviously showed me the complete content of the file i attached (was a xml file) but the name of the attachment is nowhere mentioned. so i believe once the file is attached you cannot get the name back, or a least i don&amp;#39;t see a way jet.&lt;/p&gt;&lt;p&gt;Only possible thing, if it is possible like clay mentioned to capture the name when attaching it then you could store this name in an additional textbox control from where you later could receive the it back easily. question now --- how to capture the name&lt;/p&gt;</description></item><item><title>Re: checking filename of attachment</title><link>https://www.infopathdev.com:443/forums/thread/20094.aspx</link><pubDate>Tue, 22 May 2007 08:55:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20094</guid><dc:creator>dreadz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20094.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20094</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://www.infopathdev.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Clay Fox:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; &lt;p&gt;I&amp;nbsp;think the easiest would be to do the check in the form itself when it is being attached.&amp;nbsp; I would&amp;nbsp;have rules that check the attachment field and then notify the user via an alert box or whatever you need.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Well sure, thats exactly what I&amp;#39;d like to do. I don&amp;#39;t think its possible to do that though is it? Querying the attachment field in InfoPath querys the actual attachment, not the name of the attachment. Hence needing somehow to extract the filename from the Base64 encoded attachment header&amp;nbsp;(which&amp;nbsp;would be&amp;nbsp;almost impossible for me as I dont know any JavaScript). I am completely new to InfoPath btw, so maybe I am missing something? Any advice appreciated, thank you.&lt;/p&gt;</description></item><item><title>Re: checking filename of attachment</title><link>https://www.infopathdev.com:443/forums/thread/20085.aspx</link><pubDate>Mon, 21 May 2007 15:51:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20085</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20085.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20085</wfw:commentRss><description>&lt;p&gt;This could be done a couple different ways.&lt;/p&gt;&lt;p&gt;I think the easiest would be to do the check in the form itself when it is being attached.&amp;nbsp; I would&amp;nbsp;have rules that check the attachment field and then notify the user via an alert box or whatever you need.&lt;/p&gt;&lt;p&gt;On the backend you could parse the xml file itself and find the attachment field and check the&amp;nbsp;filename but this would require a seperate process and would not give the user and usable feedback.&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item><item><title>checking filename of attachment</title><link>https://www.infopathdev.com:443/forums/thread/20060.aspx</link><pubDate>Fri, 18 May 2007 16:07:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20060</guid><dc:creator>dreadz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20060.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20060</wfw:commentRss><description>I need to extract the filename from an .xls attachment in a form and check it to see if it is valid for sharepoint. Is it possible to do this in JavaScript in the Script editor? Could anyone offer me any pointers please cos I havent got a clue how to do either part! thanks</description></item></channel></rss>