Details

      Description

      1) Add a KB Display portlet
      2) Click Add Article button
      3) Click Add Attachment
      4) Using Firebug, edit the JavaScript section block that starts with

      Liferay.provide(

      5) Look for the addAttachment URL and modify the the "dirName" parameter from:

      knowledgebase%252Ftemp%252Fattachments%252F10704

      to something different like:

      my%252Fcustom%252Fpath

      You should end up with something like

      function_2_WAR_knowledgebaseportlet_addAttachment({document._2_WAR_knowledgebaseportlet_fm.encoding="multipart/form-data";submitForm(document._2_WAR_knowledgebaseportlet_fm,"http://localhost/web/guest/home?p_auth=kPD3qQGl&p_p_id=2_WAR_knowledgebaseportlet&p_p_lifecycle=1&p_p_state=pop_up&p_p_mode=view&_2_WAR_knowledgebaseportlet_jspPage=%2Fdisplay%2Fselect_attachments.jsp&_2_WAR_knowledgebaseportlet_redirect=%2Fweb%2Fguest%2Fhome%3Fp_p_id%3D2_WAR_knowledgebaseportlet%26p_p_lifecycle%3D0%26p_p_state%3Dpop_up%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-1%26p_p_col_pos%3D1%26p_p_col_count%3D2%26_2_WAR_knowledgebaseportlet_jspPage%3D%252Fdisplay%252Fselect_attachments.jsp%26_2_WAR_knowledgebaseportlet_resourcePrimKey%3D10404%26_2_WAR_knowledgebaseportlet_status%3D-1%26_2_WAR_knowledgebaseportlet_dirName%3Dmy%252Fcustom%252Fpath&_2_WAR_knowledgebaseportlet_resourcePrimKey=10404&_2_WAR_knowledgebaseportlet_status=-1&_2_WAR_knowledgebaseportlet_dirName=knowledgebase%2Ftemp%2Fattachments%2F10702&_2_WAR_knowledgebaseportlet_javax.portlet.action=addAttachment")}
      

      6) Select a file to upload

      The file will be uploaded to the custom path. This should not be allowed.

        Attachments

          Activity

            People

            Assignee:
            lawrence.lee Lawrence Lee
            Reporter:
            samuel.kong Samuel Kong
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 1 week, 1 day ago

                Packages

                Version Package
                6.0.X EE
                6.1.1 CE GA2
                6.1.20 EE GA2
                --Sprint 11/12
                6.2.0 CE M2