Twiki update attachment
A save way would be to change the part before the dot assuming the file has a dot , by appending the current revision date double format, seconds since So companylogo. The new companylogo.
Intuitively I would expect that if I say yes to the question "Update attachment john. Even if I upload "jim. Please don't rename the existing attachment! I see two approaches, easy and hard, either of which would be fine by me: Easy If the name of the uploaded file does not match the name of the attachment, generate a message and refuse to upload it.
If that really is the right file, the user can rename it on their local machine and try again. Hard If the name of the uploaded file does not match the name of the attachment, prompt for confirmation that the upload should proceed.
If the confirmation is positive, rename the uploaded file to the name of the attachment and check it in as normal. I want to try to sketch this in a real world example. For instance, I have some screenshots of a website in the attachment table. I want to update the schreenshot of the homepage.
I really do not care with file format it is in, technically. It is just an image. Let's say I previously attached homepage. I update homepage. Seen from a viewpoint of workflow, not from viewpoint of dead links in the topic text, this is a logical procedure. Now, what next? Most important is to take the user seriously. Of course he wants to update the attachment, so don't bother him with pedantic warning messages not personal Crawford :.
Imagine you need to update 25 files! If the old file is renamed, that is not a big issue. The file is still there for recall. The only thing is that some dead links are created. If the user can take the effort of renaming a file on the local computer, he surely can update the topic text.
It would be nice if a list of dead links is generated on the attach page. Not very obtrusive, and not a one-time warning, but something that can stay there for a while to take up the next time. If I update homepage. Or if remarks. The problem here is that the name of the attachment is more than just a unique label identifying that attachment. It also identifies the type of the attachment and the associated version stream of the attachment. If you change the label you are clearly not updating an old attachment, but attaching a new, very different, file.
Do you mean that Rcs can't handle this? Say you start with file XYZ. Then you rename the file XYZ. Now, if you co -r1. So you have lost the version information that told you what type that attachment was.
In most cases, that will leave the revision unreadable. Comment Describe the file so other people know what it is. Properties Create a link to the attached file Images will be displayed, for other attachments a link will be created. Do not show attachment in table Attachments will not be shown in topic view page. Please use the Support forum if you have questions about TWiki features.
This comment section is about the documentation of this topic. Attachments Attachments. Topic revision: r79 - - PeterThoeny. Account Log In Register User. E dit A ttach. Ideas, requests, problems regarding TWiki?
0コメント