<?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: Atachments confirmation</title><link>https://www.infopathdev.com:443/forums/thread/53380.aspx</link><pubDate>Tue, 06 Apr 2010 17:30:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53380</guid><dc:creator>bbolling</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53380.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53380</wfw:commentRss><description>&lt;p&gt;I ran into the same problem and will post my solution for others encountering this issue. In the file &amp;quot;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\INC\intlcoresettings.js&amp;quot; there is a string variable that controls the text of the message:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;IntlCoreStrings.k_strFileAttachmentDownloadPrompt = &amp;quot;You have chosen to download a file that may be harmful to your computer. It is important to be certain that the file comes from a trustworthy source. Do you want to continue?&amp;quot;;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This can be changed to any message you like. If you want to completely disable the message altogether you have to modify &amp;quot;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\INC\Core.js&amp;quot;. &lt;font color="red"&gt;I will warn everyone&amp;nbsp;that modifying&amp;nbsp;ANY of the files I am mentioning here is NOT SUPPORTED BY MICROSOFT.&lt;/font&gt; These files&amp;nbsp;are used globally throughout your SharePoint farm so any changes you make here will reflect everywhere&amp;nbsp;they are &amp;nbsp;used&amp;nbsp;throughout your SharePoint farm. This file can also be overwritten by any SharePoint updates or Service Packs which will cause your change to be lost. I am not advocating this approach but I am trying to shed a little light&amp;nbsp;on this. Both of the Javascript files identified above are referenced&amp;nbsp;from FormServer.aspx page (in \12\TEMPLATE\LAYOUTS). This page contains the &lt;strong&gt;XmlFormView&lt;/strong&gt; control that renders the InfoPath form template to the web browser. Since this control renders the Javascript tags I have not found an elegant way to override Core.js which leads me to this solution. Within Core.js there is a line of code as follows:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;var boolCanDownload = UserMessages.ShowConfirmMessage(IntlCoreStrings.k_strFileAttachmentDownloadPrompt, true);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This line of code is calling a function that shows the message box and passes in the string variable to display the message. But if you comment this line out and insert a new line of code as follows:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;var boolCanDownload = true;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;then you are overriding the message box altogether and the file will download without the end user seeing the message box.&lt;/p&gt;</description></item><item><title>Re: Atachments confirmation</title><link>https://www.infopathdev.com:443/forums/thread/11041.aspx</link><pubDate>Fri, 02 Feb 2007 12:00:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11041</guid><dc:creator>ekzarov</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11041.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11041</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by nukkumatti&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Just an idea for a small workaround. If I remember correctly you can define file types you want the user to be able to attach (e.g. .pdf .doc). Like this you can at least take care that users do not attach any .exe for example which could harm your network/pc.&lt;br /&gt;&lt;br /&gt;This of course does not solve your problem but..&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;Yes, you are right, but this is not solution for my issue. I know about this feature... But, any way, thanks...</description></item><item><title>Re: Atachments confirmation</title><link>https://www.infopathdev.com:443/forums/thread/11040.aspx</link><pubDate>Fri, 02 Feb 2007 11:29:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11040</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11040.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11040</wfw:commentRss><description>Just an idea for a small workaround. If I remember correctly you can define file types you want the user to be able to attach (e.g. .pdf .doc). Like this you can at least take care that users do not attach any .exe for example which could harm your network/pc.&lt;br /&gt;&lt;br /&gt;This of course does not solve your problem but..</description></item><item><title>Re: Atachments confirmation</title><link>https://www.infopathdev.com:443/forums/thread/11039.aspx</link><pubDate>Thu, 01 Feb 2007 16:05:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11039</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11039.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11039</wfw:commentRss><description>Hi Alexander,&lt;br /&gt;If this was Windows XP SP2 and the file was XML, I'd say there is a Windows Shell setting to remove the warning. Since you have Windows Server, I'd have to say this is IE7 setting related. Look in Internet Explorer Security tab for the setting. You should also try trusting the site or domain (add to local intranet and see if that makes a difference). Sorry I can't be more helpful.</description></item><item><title>Re: Atachments confirmation</title><link>https://www.infopathdev.com:443/forums/thread/11038.aspx</link><pubDate>Thu, 01 Feb 2007 14:28:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11038</guid><dc:creator>ekzarov</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11038.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11038</wfw:commentRss><description>I forgot to say that I have Internet Explorer 7.0 and Windows Server 2003 OS...</description></item><item><title>Atachments confirmation</title><link>https://www.infopathdev.com:443/forums/thread/6043.aspx</link><pubDate>Thu, 01 Feb 2007 14:26:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6043</guid><dc:creator>ekzarov</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6043.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6043</wfw:commentRss><description>I have a form template wich is browser-enabled and published to document library in Sharepoint 2007 as content type. My form has atachment. So everything is ok. But when I open my form in browser and try to open my atachment by double clicking, I get a confirm message "You have chosen to download a file that may be harmful to your computer. It is important to be certain that the file comes from a trustworthy source.". When I click "Yes" - I open a file. But I don`t wanna to see this confirmation message. I want to open this file immediatly. Is there a posibility to do this ???</description></item></channel></rss>