Project

General

Profile

Defect #10189

Updated by Etienne Massip over 12 years ago

Now that Redmine does not replaced special characters in attachment filenames, you cannot display an image attachment inline when the attachment name has spaces in it.  

 e.g.:  
 <pre> 
 !Sample Image.png!        will not, as it does not recognise this as a complete image reference 
 </pre> 
 !Sample Image.png! 

 <pre> 
 !Sample_Image.png!        will not work, as there is no attachment with this name 
 </pre> <pre> 
 !Sample_Image.png! 

 <pre> 
 !"Sample Image.png"!      will not work, it doesn't seem to respect the quotes to enclose the filename 
 </pre> 
 !"Sample Image.png"! 

 If you rename the file so that it does not containe spaces it does work  
 <pre> 
 !SampleImage2.png! will work 
 </pre> 
 !SampleImage2.png! 

 I know it is best practice to name files without spaces, but the users have been used to working with the underscores for a couple of years now. What is the best way to reference the attachment (containing spaces in the name) or revert to the previous file handling (less preferable).

Back