<?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: Trimming Long File Name</title><link>https://www.infopathdev.com:443/forums/thread/100213.aspx</link><pubDate>Fri, 21 Nov 2014 16:49:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100213</guid><dc:creator>Ravik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100213.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=100213</wfw:commentRss><description>I totally understand Patrick.

Thanks for your time.

Regards,

Ravi</description></item><item><title>Re: Trimming Long File Name</title><link>https://www.infopathdev.com:443/forums/thread/100072.aspx</link><pubDate>Sun, 16 Nov 2014 05:03:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100072</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100072.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=100072</wfw:commentRss><description>&lt;p&gt;Hi Ravi,&lt;/p&gt;&lt;p&gt;It&amp;#39;s easy&amp;nbsp;to trim field lengths. Just add a rule that sets the field to the substring of itself and use first of&amp;nbsp;0 and last of 128 to get the first 128.&lt;/p&gt;&lt;p&gt;Unfortunately, for file attachment names, they are not stored in fields, so you&amp;nbsp;have to write some code.&amp;nbsp;Our qRules&amp;nbsp;plugin let&amp;#39;s you manipulate file attachments and their names, but we don&amp;#39;t have time to respond here to every code request.&lt;/p&gt;&lt;p&gt;Thanks for your understanding. &amp;nbsp;&lt;/p&gt;</description></item><item><title>Trimming Long File Name</title><link>https://www.infopathdev.com:443/forums/thread/100059.aspx</link><pubDate>Fri, 14 Nov 2014 13:54:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100059</guid><dc:creator>Ravik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100059.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=100059</wfw:commentRss><description>Hi All, 

Is there a way to restrict or trim the attachment file if it exceeds more than 100 or 128 character? 

I already run a decoder in my code which eliminates special characters, but if the file name is longer than 128 characters and does not have any special characters. 

Based on the above scenario, how can i trim the file name?

Any help will be much appreciated.

Regards,

Ravi</description></item></channel></rss>