Amélioration: Encodage des productId dans les appel content sur EditProductContent.ftl
<h3>${uiLabelMap.ProductUploadImage}</h3>
<#assign urlEncodedProductId = "UploadProductImage?"
+ Static["org.apache.ofbiz.base.util.UtilHttp"].urlEncodeArgs({"productId",productId}, false)!
+ "&upload_file_type=">
<form method="post" enctype="multipart/form-data" action="<@ofbizUrl>${urlEncodedProductId}original</@ofbizUrl>" name="imageUploadForm">
<table cellspacing="0" class="basic-table">
<tr>
<td width="20%" align="right" valign="top">
<input type="file" size="50" name="fname"/>
</td>
<td> </td>
<td width="80%" colspan="4" valign="top">
<label><input type="radio" name="upload_file_type_bogus" value="small" onclick='setUploadUrl("<@ofbizUrl>${urlEncodedProductId}small</@ofbizUrl>");'/>${uiLabelMap.CommonSmall}</label>
<label><input type="radio" name="upload_file_type_bogus" value="medium" onclick='setUploadUrl("<@ofbizUrl>${urlEncodedProductId}medium</@ofbizUrl>");'/>${uiLabelMap.CommonMedium}</label>
<label><input type="radio" name="upload_file_type_bogus" value="large"onclick='setUploadUrl("<@ofbizUrl>${urlEncodedProductId}large</@ofbizUrl>");'/>${uiLabelMap.CommonLarge}</label>
<label><input type="radio" name="upload_file_type_bogus" value="detail" onclick='setUploadUrl("<@ofbizUrl>${urlEncodedProductId}detail</@ofbizUrl>");'/>${uiLabelMap.CommonDetail}</label>
<label><input type="radio" name="upload_file_type_bogus" value="original" checked="checked" onclick='setUploadUrl("<@ofbizUrl>${urlEncodedProductId}original</@ofbizUrl>");'/>${uiLabelMap.ProductOriginal}</label>
<input type="submit" class="smallSubmit" value="${uiLabelMap.ProductUploadImage}"/>
</td>
</tr>
</table>