Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3033

Force multipart and POST form settings in LongFreeTextFileUploadHandler getWidgetHtml method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.9.0
    • Fix Version/s: OpenMRS 1.9.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      In order to properly process file uploads, the LongFreeTextFileUploadHandler class requires the form to use multipart/form-data encoding and be sent using the POST method. This can possibly be accomplished by supplementing the rendered input field with the following jQuery script:

      var form = jq('#${ id }').closest('form');
      if (form.length) {
          form.attr('method', 'post');
          form.attr('enctype', 'multipart/form-data');
      }
      

        Attachments

          Activity

            People

            Assignee:
            darius Darius Jazayeri [X] (Inactive)
            Reporter:
            jeremy Jeremy Keiper [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: