<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Restricting file upload size to 5 MB</title><link>https://www.infopathdev.com:443/forums/thread/90090.aspx</link><pubDate>Fri, 24 May 2013 05:32:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90090</guid><dc:creator>PRKJ211</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90090.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=90090</wfw:commentRss><description>&lt;p&gt;Thanks for the information!&lt;/p&gt;&lt;p&gt;It was very helpful. I tried this validation rule and it worked - string-length(.) &amp;gt; 5242880 (5MB).&lt;/p&gt;&lt;p&gt;I wanted this validation for attachments within the infopath form.&lt;/p&gt;</description></item><item><title>Re: Restricting file upload size to 5 MB</title><link>https://www.infopathdev.com:443/forums/thread/90079.aspx</link><pubDate>Thu, 23 May 2013 16:32:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90079</guid><dc:creator>wilkies0106aw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90079.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=90079</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Is this restrict the size of the InfoPath form or attachments within a form?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If it is an attachment you could do the following:&lt;/p&gt;&lt;p&gt;Add validation to the field:&lt;/p&gt;&lt;p&gt;1. Open the Data Source pane&lt;br /&gt; 2. Double-click on field1 to bring up its properties&lt;br /&gt; 3. In Validation, add a new condition&lt;br /&gt; 4. Select Expression, type this expression in: string-length(.) &amp;gt; 136533&lt;br /&gt; 5. Enter the text to be displayed when the error condition occurs&lt;/p&gt;&lt;p&gt;Now when you edit the form, if the image is too big, you will get an error validation and the user will be warned on save.&lt;/p&gt;&lt;p&gt;I haven’t tested this and it will need checking with multiple attachments. The above figure of 136533 is for a 100KB limit. To calculate the relevant figure:&lt;/p&gt;&lt;p&gt;ExpressionLimit = KB * 1024 / 0.75&lt;/p&gt;&lt;p&gt;In SP you&amp;#39;ll have to play around with Maximum Upload Size in Central Admin. This setting will more than likely affect more than just your one library.&lt;/p&gt;&lt;p&gt;If it&amp;#39;s via email, can you not use your email client?&lt;/p&gt;</description></item><item><title>Restricting file upload size to 5 MB</title><link>https://www.infopathdev.com:443/forums/thread/90052.aspx</link><pubDate>Thu, 23 May 2013 06:15:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90052</guid><dc:creator>PRKJ211</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90052.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=90052</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have an infopath 2010 form published to a document library. Its not browser enabled. I have a requirement to restrict the file upload size to 5 MB. &lt;/p&gt;&lt;p&gt;Can anyone please confirm if there is any other out of the box option to do it?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks :)&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>