<?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: JScript to extract attachment file name?</title><link>https://www.infopathdev.com:443/forums/thread/9517.aspx</link><pubDate>Mon, 10 Apr 2006 21:06:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9517</guid><dc:creator>anotherchrisberry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9517.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9517</wfw:commentRss><description>That would not work because Infopath automatically encodes the file (and includes the file name in a header) when the user attaches it. So there's no point at which you can grab the file name (or path) that I can see.&lt;br /&gt;&lt;br /&gt;The only (?) solution I can think of is to decode the header generated by Infopath, but it needs to be done by JScript.&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: JScript to extract attachment file name?</title><link>https://www.infopathdev.com:443/forums/thread/9516.aspx</link><pubDate>Mon, 10 Apr 2006 20:58:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9516</guid><dc:creator>Ted Fitch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9516</wfw:commentRss><description>anotherchrisberry,&lt;br /&gt;&lt;br /&gt;Did you try this VBscript method?&lt;br /&gt;&lt;br /&gt;&lt;a href='http://www.webmasterworld.com/forum47/414.htm' target='_blank' title='http://www.webmasterworld.com/forum47/414.htm'&lt;a target="_blank" href=http://www.webmasterworld.com/forum47/414.htm&gt;http://www.webmasterworld.com/forum47/414.htm&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hope that helps</description></item><item><title>JScript to extract attachment file name?</title><link>https://www.infopathdev.com:443/forums/thread/5520.aspx</link><pubDate>Mon, 10 Apr 2006 20:17:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5520</guid><dc:creator>anotherchrisberry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5520.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5520</wfw:commentRss><description>I've been searching and experimenting with code for nine hours now, and can't come up with anything helpful on this question:&lt;br /&gt;&lt;br /&gt;Does anyone have JScript code to extract the file name from an attached file? I've tried re-writing the VBScript implementation (found here:&lt;a href='http://www.motobit.com/tips/detpg_Base64/' target='_blank' title='http://www.motobit.com/tips/detpg_Base64/'&lt;a target="_blank" href=http://www.motobit.com/tips/detpg_Base64/&gt;http://www.motobit.com/tips/detpg_Base64/&lt;/a&gt;&lt;/a&gt;) but failed; I also don't have Visual Studio.&lt;br /&gt;&lt;br /&gt;It seems silly to need just the filename, but the name will be used to construct hyperlinks with XSLT, and I can just imagine the complaints from users if they have to enter the file name manually ("But I can see it right there on the screen. Why do I have to type it in, too?").&lt;br /&gt;&lt;br /&gt;Anybody have a good Base64 decoder written in JScript? I haven't been able to find one.&lt;br /&gt;&lt;br /&gt;Thanks!</description></item></channel></rss>