Limit File Attachment Control File Size - InfoPath Dev
in

InfoPath Dev

Limit File Attachment Control File Size

Last post 08-03-2012 06:02 AM by leoffneym. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-02-2012 05:30 AM

    Limit File Attachment Control File Size

    Hi,

    is there a way to limit the size of an attachemnt that can be added to the File Attachment control?

    I want to limit it so all pictures over 500kb are flagged as an error and prevent the form from being submitted

    Thanks,

    Barry

  • 08-03-2012 06:02 AM In reply to

    Re: Limit File Attachment Control File Size

    I have attached a template with how to check the size of attachments.
    It's approximate, so it will be off +/- 5% of actual size.

    The textbox would be a hidden field. 
    You would want to add a validation to the textbox that makes sure the number is less than 500000 (may want to make it 550000, since the number is approximate)
    See Attachment for how it works.

     

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