- I upload an (image) attachment using the Manage Attachment button.
- I close and re-open the dialog box.
- I then insert a link to the (image) attachment.
- If the image was saved with a lower case file extension, eg image.jpg, the image link works fine. In raw view the link is <img alt="image.jpg" src="%ATTACHURL%/image.jpg" />
- However, if the image was saved with an upper case file extension, eg image.JPG, I get a link as if to a non-image attachment. In raw view:
[[%ATTACHURL%/image.JPG][image.JPG]]
- In the latter case, deleting the 2nd square bracket will shown the image.
Can this be changed so that the attachment is recognised as an image regardless of the case if the file extension?
I hope I have filled the form in correctly as it is a bit beyond me!
--
TWiki:Main/TamsinTweddell
- 10 Mar 2008
You filled it in correctly, thanks. Trying what you describe:
--
CrawfordCurrie - 11 Mar 2008
Hmmm, seems to work as advertised. Can you reproduce the problem here, and describe the steps you followed?
--
CrawfordCurrie - 11 Mar 2008
Could this be associated with the browser? I am using IE7. I think I read somewhere that you use Firefox.
In addition to the info above, the image link is inserted using the Manage Attachment button, not the Insert Image button. I'm not sure I made this clear.
--
TWiki:Main.TamsinTweddell
- 11 Mar 2008
Manage Attachment explicitly inserts a HTML anchor link -
. Such links are not converted to IMG links. TN_camel_50.JPG. If they were, it would be inpossible to insert an anchor link to an image. Therefore the problem appears to be that a link to an image file with a lowercase extension is incorrectly being saved as an IMG.

ok, I see what you mean. Confirmed.
--
CrawfordCurrie - 13 Mar 2008
Fixed in
trunk
and uploaded to TWiki.org. Will need to be merged to patch branch.
CC
Somehow the changed got merged over by a later checkin
It is pretty bad to close a bug and hope you later merge
--
TWiki:Main.KennethLavrsen
- 04 Aug 2008