Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-3090

Uploaded images in inline editor can not contain '_max' in filename

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.2.3, 3.3
    • None
    • None
    • None

      The following pipeline intercepts the request :

      <map:match pattern="*/_contents-images/**/_metadata/**/_data/**_max*x*">
         <map:act type="set-header">
              <map:parameter name="X-Ametys-Cacheable" value="true"/>
         </map:act>
                      
         <map:act type="get-content">
             <map:parameter name="path" value="{2}"/>
             <map:parameter name="contentVersion" value="{request-param:contentVersion}"/>
                          
             <map:read type="content-file">
                   <map:parameter name="download" value="{request-param:download}"/>
                   <map:parameter name="path" value="{../4}"/>
                   <map:parameter name="metadata" value="{../3}"/>
                   <map:parameter name="maxHeight" value="{../5}"/>
                   <map:parameter name="maxWidth" value="{../6}"/>
             </map:read>
         </map:act>
      </map:match>
      

          [CMS-3090] Uploaded images in inline editor can not contain '_max' in filename

          Url of image is

          /cms/preview/www/_contents-images/ametys-internal%253Asites/www/ametys-internal%253Acontents/laboratoires-article/_metadata/content/_data/gallery_max_2.jpg_150x225?
          

          Laurence Aumeunier added a comment - Url of image is /cms/preview/www/_contents-images/ametys-internal%253Asites/www/ametys-internal%253Acontents/laboratoires-article/_metadata/content/_data/gallery_max_2.jpg_150x225?

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: