How to limit the size of Attachment in Infopath form 2010 - InfoPath Dev
in

InfoPath Dev

How to limit the size of Attachment in Infopath form 2010

Last post 10-18-2011 09:17 PM by glpallavi. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 10-17-2011 09:10 AM

    How to limit the size of Attachment in Infopath form 2010

    Hi all, I have created a Infopath 2010 form using Sharepoint list Template. Users are allowed to attach files, How can i restrict the size of the attachment. By default Sharepoint allows 1.5 MB , i want to reduce it. Thanks in Advance Pallavi G.L
  • 10-17-2011 09:32 AM In reply to

    Re: How to limit the size of Attachment in Infopath form 2010

    Hello Pallawi,

    and welcome to our forum.  I guess there are ways with and witout code. With using code you can use the 'Validating'-event to report a validation error to the user if the file size exceeds a predefined limit. Please have a look at http://www.bizsupportonline.net/blog/2009/10/programmatically-restrict-size-attachment-infopath/ for further information and a working example.

    If you want to use rules please have a look at the following thread here in this forum. Even though this thread deals with the picture control you can use the same technique for an attachment control.

    http://www.infopathdev.com/forums/p/6249/23045.aspx#23045

    Hope that helps.

    Regards,

    Karsten
  • 10-17-2011 08:57 PM In reply to

    Re: How to limit the size of Attachment in Infopath form 2010

    Hi Karsten,

    I have posted the screen shot  of the infopath form .

    It does not allow me to add the Validation Rule to the attachments.

    And as there is no developer tab ( as it is a Sharepoint List template which i am using ).

    Please sujest me any other technique to solve this problem.

    Thanks,

    Pallavi


  • 10-17-2011 10:43 PM In reply to

    Re: How to limit the size of Attachment in Infopath form 2010

    That data source is kinda weird looking (though I haven't worked with SharePoint list forms).  Is that control you have highlighted in your screenshot a section with an attachment control inside it, or just an attachment control?  I'm guessing that :attachmentURL field has a string datatype, but just for the sake of argument, could you tell me what datatype it is?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 10-18-2011 09:17 PM In reply to

    Re: How to limit the size of Attachment in Infopath form 2010

    I am using a Issue tracker List and a Share Point list Template Form .

    The Attachment data type is Attachment Type.

    I have attached the scrren shot along .


Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.