Bug: Rename Partially Handles Uploaded JPG FIles
If a web topic called
SomeTopic exists and there are attachments named
SomeTopic.jpg, then if you rename
SomeTopic to
SomeNewTopic, the references to
SomeTopic.jpg get changed to
SomeNewTopic.jpg, but the .jpg files are not renamed.
This may be a case of a poor choice of names for the .jpg files, but it was very handy. I had a topic called
ScreenShots, uploaded a bunch of screen images to the
ScreenShots topic, and referenced the images in various topics of my application tutorial. All the .jpg names match the topics names where they are referenced.
I will probably continue to do this as there doesn't appear to be a way to rename uploaded files; renaming the .jpg files manually is easier than deleting and reloading them.
Test case
As described above.
Environment
| TWiki version: |
Athens |
| TWiki plugins: |
none |
| Server OS: |
Linux |
| Web server: |
Apache |
| Perl version: |
5.601 |
| Client OS: |
Windows/ME |
| Web Browser: |
IE 6 |
--
RogerHaase - 09 Aug 2002
Follow up
This
BugReport applies to all attachments and should renamed to
RenameTopicPartiallyHandlesAttachments
RenamingAttachments gets discussed now, but should a topic renaming also have an affect on attachments?
In my opinion it does make sense. Filenames having the same name as a topic are obviously related to that topic (and its name) and should therefore also be renamed when a topic gets renamed.
If this is not the case you have the option to disable the renaming in the topicrename-dialog.
--
AndreUlrich - 28 Feb 2004
I disagree. I hate things that happen unexpectedly; If I have a topic
MyExpenses with attachment
MyTravel.xls, and I change the topic name to
MyTravel, then rename it at some later date back to
MyExpenses, then the xls will magically get renamed! Yuch. Foul.
The original bug reported here has been fixed (well, it works as expected in build 1572) and the references do
not get renamed.
--
CrawfordCurrie - 12 Jul 2004
Removed the scheduled for
CairoRelease, no fix here (might be fixed elsewhere)
--
PeterThoeny - 16 Aug 2004
Fix record