Project

General

Profile

Actions

Defect #10189

open

Inline image does not work with spaces in file name

Added by Jason Palmer about 14 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Resolution:
Affected version:

Description

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.:

!Sample Image.png!      will not, as it does not recognise this as a complete image reference

!Sample Image.png!

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

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

!"Sample Image.png"!

If you rename the file so that it does not containe spaces it does work

!SampleImage2.png! will work

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).


Files

Sample Image.png (10.6 KB) Sample Image.png Jason Palmer, 2012-02-09 21:37
SampleImage2.png (10 KB) SampleImage2.png Jason Palmer, 2012-02-09 21:37
space_in_inline_image_filename.patch (777 Bytes) space_in_inline_image_filename.patch Dicky Hadiyuwono, 2012-11-19 03:34
unescape_inline_attachment_filename.patch (465 Bytes) unescape_inline_attachment_filename.patch Jeff Fendley, 2013-12-03 23:56
images_with_space.patch (909 Bytes) images_with_space.patch Please test and feedback. No changes to Redmine syntax Paulo Neves, 2013-12-15 14:12

Related issues

Related to Redmine - Defect #10182: UTF and AttachmentsNewActions
Related to Redmine - Feature #26071: Generate markup for uploaded image dropped into wiki-edit textareaClosedJean-Philippe LangActions
Has duplicate Redmine - Defect #17679: Attached inline image not workingClosedActions
Has duplicate Redmine - Defect #13375: Inline Image formatting does not allow a file name with spacesClosedActions
Actions

Also available in: Atom PDF