Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-8638

File size limitation on attachments (if more than 500KB file size,)

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 2.1.3
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-8339Validate attachment file size
      KULRICE-3634When exceeding the file upload limit, display a standard error message
      KULRICE-322need ability to specify a (configurable) global limit on max file size for uploads
      KULRICE-7557Large attachments on notes and attachments framework cause exceptions
      KULRICE-915file upload size limit for accounting line imports is applying to all file uploads
      KULRICE-11580Small button size is too big
      KULRICE-12755Create Demo for file upload collections
      KULRICE-7012Limit the size of form storage in session
      KULRICE-2159Add limited cache size for documents stored in session
      KULRICE-4578Allow for default frame size to be specified
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      In Notes and Attachment or any Other place where we need to attach a File (any file) , the Fole size is limited to max 500 KB (or 488KB) Else it would throw error.

        Issue Links

          Activity

          Hide
          Peter Giles (Inactive) added a comment -

          This is supposed to be configurable, see the code in PojoFormBase.initMaxUploadSizes(), and WebUtils.getMaxUploadSize() to see how that should be working.

          Show
          Peter Giles (Inactive) added a comment - This is supposed to be configurable, see the code in PojoFormBase.initMaxUploadSizes(), and WebUtils.getMaxUploadSize() to see how that should be working.
          Hide
          Shannon Hess added a comment -

          Manoj,

          Peter is correct, this is configurable using the MAX_FILE_SIZE_ATTACHMENT system parameter. The KNS framework, which provides the notes and attachments capabilities, manages notes in each application. You can add new 'MAX_FILE_SIZE_ATTACHMENT' parameters if you want the file limitation to be different for a particular application. You can also modify the existing 'MAX_FILE_SIZE_ATTACHMENT' parameter for the KUALI application, which is defaulted to 5K out of the box and will be used by the standalone server and by any application that does not have it's own specific 'MAX_FILE_SIZE_ATTACHMENT' parameter

          To insert a new 'MAX_FILE_SIZE_ATTACHMENT' parameter for the KFS application (This can also be created via the UI):

          INSERT INTO KRCR_PARM_T(NMSPC_CD, CMPNT_CD, PARM_NM, OBJ_ID, VER_NBR, PARM_TYP_CD, VAL, PARM_DESC_TXT, EVAL_OPRTR_CD, APPL_ID)
            VALUES('KR-NS', 'Document', 'MAX_FILE_SIZE_ATTACHMENT', SYS_GUID(), 1, 'CONFG', '20M', 
                   'Maximum attachment upload size for the KC application. Used by KualiDocumentFormBase. Must be an integer, optionally followed by "K", "M", or "G".', 
                   'A', 'KFS')
          /
          

          To update the KUALI 'MAX_FILE_SIZE_ATTACHMENT' parameter (This can also be edited via the UI):

          update KRCR_PARM_T set VAL = '20M' where PARM_NM = 'MAX_FILE_SIZE_ATTACHMENT' and APPL_ID = 'KUALI'
          

          Please note that the application ID is case sensitive.

          If you have any issues with this just let me know.

          Thanks!
          Shannon

          Show
          Shannon Hess added a comment - Manoj, Peter is correct, this is configurable using the MAX_FILE_SIZE_ATTACHMENT system parameter. The KNS framework, which provides the notes and attachments capabilities, manages notes in each application. You can add new 'MAX_FILE_SIZE_ATTACHMENT' parameters if you want the file limitation to be different for a particular application. You can also modify the existing 'MAX_FILE_SIZE_ATTACHMENT' parameter for the KUALI application, which is defaulted to 5K out of the box and will be used by the standalone server and by any application that does not have it's own specific 'MAX_FILE_SIZE_ATTACHMENT' parameter To insert a new 'MAX_FILE_SIZE_ATTACHMENT' parameter for the KFS application (This can also be created via the UI): INSERT INTO KRCR_PARM_T(NMSPC_CD, CMPNT_CD, PARM_NM, OBJ_ID, VER_NBR, PARM_TYP_CD, VAL, PARM_DESC_TXT, EVAL_OPRTR_CD, APPL_ID) VALUES('KR-NS', 'Document', 'MAX_FILE_SIZE_ATTACHMENT', SYS_GUID(), 1, 'CONFG', '20M', 'Maximum attachment upload size for the KC application. Used by KualiDocumentFormBase. Must be an integer, optionally followed by "K" , "M" , or "G" .', 'A', 'KFS') / To update the KUALI 'MAX_FILE_SIZE_ATTACHMENT' parameter (This can also be edited via the UI): update KRCR_PARM_T set VAL = '20M' where PARM_NM = 'MAX_FILE_SIZE_ATTACHMENT' and APPL_ID = 'KUALI' Please note that the application ID is case sensitive. If you have any issues with this just let me know. Thanks! Shannon

            People

            • Assignee:
              Shannon Hess
              Reporter:
              Manoj Rawat (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel