Project

General

Custom queries



Profile

Actions

Defect #10189

open

Inline image does not work with spaces in file name

Added by Jason Palmer about 13 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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 AttachmentsNew

Actions
Related to Redmine - Feature #26071: Generate markup for uploaded image dropped into wiki-edit textareaClosedJean-Philippe Lang

Actions
Has duplicate Redmine - Defect #17679: Attached inline image not workingClosed

Actions
Has duplicate Redmine - Defect #13375: Inline Image formatting does not allow a file name with spacesClosed

Actions
#3

Updated by Etienne Massip about 13 years ago

  • Description updated (diff)
#8

Updated by Dicky Hadiyuwono over 12 years ago

#11

Updated by Jeff Fendley over 11 years ago

#14

Updated by Paulo Neves over 11 years ago

#18

Updated by Toshi MARUYAMA over 10 years ago

  • Has duplicate Defect #17679: Attached inline image not working added
#19

Updated by Toshi MARUYAMA over 10 years ago

#20

Updated by Toshi MARUYAMA over 10 years ago

  • Has duplicate Defect #13375: Inline Image formatting does not allow a file name with spaces added
#24

Updated by Toshi MARUYAMA over 8 years ago

  • Category changed from Wiki to Text formatting
#27

Updated by Toshi MARUYAMA almost 8 years ago

  • Related to Feature #26071: Generate markup for uploaded image dropped into wiki-edit textarea added
Actions

Also available in: Atom PDF