<?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: Upload huge files into infoapth form</title><link>https://www.infopathdev.com:443/forums/thread/96246.aspx</link><pubDate>Mon, 03 Mar 2014 07:46:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96246</guid><dc:creator>wilkies0106aw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96246.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=96246</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I don&amp;#39;t do code. &lt;/p&gt;&lt;p&gt;A mapped network drive would happen as part of a login script i..e like a home drive. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Upload huge files into infoapth form</title><link>https://www.infopathdev.com:443/forums/thread/96242.aspx</link><pubDate>Mon, 03 Mar 2014 03:57:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96242</guid><dc:creator>pcgrajesh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96242.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=96242</wfw:commentRss><description>&lt;p&gt;Thanks for your help. Since am a new to infoapth development,&amp;nbsp; I could not&amp;nbsp;able to find the relavent info. could you please help me how to map network/any client path upon clicking the button. I tried with the following approach but helpless., Please have a look on my code and if possibel try to share your approach.&lt;/p&gt;&lt;p&gt;//below code is working but it is pointing to &amp;quot;Server file path&amp;quot; rather&amp;nbsp;pointing to &amp;quot;local&amp;quot; path.... I dont know how to refer the local path uisng infoapth managed code. &lt;br /&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;p&gt;using&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;p&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ClientContext&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ctx = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ClientContext&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;http://myteam123/sites/abc/&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;))&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;            {&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Web&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; currentWeb = ctx.Web;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;                ctx.Load(currentWeb);&lt;/p&gt;&lt;p&gt;                ctx.ExecuteQuery();&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Path = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/my:myFields/my:field4&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;FileStream&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; fs = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;FileStream&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(path, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;FileMode&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Open))&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;byte&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;[] byteArray= StreamFile(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;test&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;,fs);&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;                  UploadDocument1(&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;http://myteam123/sites/abc/&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Shared Documents&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Shared Documents/&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;test1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, byteArray);&amp;nbsp; // upload to shared doc.&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;

&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;

}&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Upload huge files into infoapth form</title><link>https://www.infopathdev.com:443/forums/thread/96178.aspx</link><pubDate>Fri, 28 Feb 2014 11:46:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96178</guid><dc:creator>wilkies0106aw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96178.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=96178</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am sure it is, but I stay away from managed code as it makes maintaining and updating forms tricker.&lt;/p&gt;&lt;p&gt;&amp;nbsp;If you want to browser to a directory, the easiest way would be to use a mapped drive. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Upload huge files into infoapth form</title><link>https://www.infopathdev.com:443/forums/thread/96170.aspx</link><pubDate>Fri, 28 Feb 2014 07:25:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96170</guid><dc:creator>pcgrajesh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96170.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=96170</wfw:commentRss><description>&lt;p&gt;Hi&amp;nbsp; Thanks for your reponse.&lt;/p&gt;&lt;p&gt;Alternatively do you have any approach&amp;nbsp; or is that possibel to upload docuemnts to document libray using Infopath Managed Code ?? I was trying but unfortunately , when am attaching the file it is pointing to Server URL. is that possibel to browse the file from client mahcine to sharepint docuemnt??&lt;/p&gt;</description></item><item><title>Re: Upload huge files into infoapth form</title><link>https://www.infopathdev.com:443/forums/thread/96146.aspx</link><pubDate>Thu, 27 Feb 2014 10:42:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96146</guid><dc:creator>wilkies0106aw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96146.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=96146</wfw:commentRss><description>&lt;p&gt;You can&amp;#39;t if you&amp;#39;re not going to increase anything.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="gmw_"&gt;&lt;span class="gmw_"&gt;An alternative that comes to mind is to create a document set and upload the files to the document set. Then you&amp;#39;ll need to &amp;quot;link&amp;quot; the two together i.e using &lt;span class="gm_ gm_589b72af-672a-b6ed-8471-bb397cd8a626 gm-spell gm_tiny"&gt;a&lt;/span&gt; &lt;/span&gt;&lt;span class="gm_ gm_9ea19327-b346-ae58-bc6d-257ea8b93707 gm-spell"&gt;url&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Upload huge files into infoapth form</title><link>https://www.infopathdev.com:443/forums/thread/96144.aspx</link><pubDate>Thu, 27 Feb 2014 10:11:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96144</guid><dc:creator>pcgrajesh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96144.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=96144</wfw:commentRss><description>&lt;p&gt;Hi ,&lt;/p&gt;&lt;p&gt;Am&amp;nbsp;an&amp;nbsp;infopath2010 developer&amp;nbsp; and&amp;nbsp;am implementing forms using &lt;strong&gt;infopathform 2010&lt;/strong&gt;. &lt;/p&gt;&lt;p&gt;Recently&amp;nbsp; one of my user want to&amp;nbsp;attach 20-30 MB file into infopath form. But due to our company policy ,we are not allow to upload more that 10MB files into infopath itself and not ready to increase the infopath size limit in &amp;quot;Central Administration&amp;quot;.&amp;nbsp; Can you please help me what is the alternative way to upload the 30MB file size in infoapth form rather increasing the file size limit in &amp;quot;Central administraor&amp;quot;.&lt;/p&gt;</description></item></channel></rss>