SID-01485: Get documents from SVN instead of twiki attachments
| Status: |
Answered |
TWiki version: |
5.1.0 |
Perl version: |
5.012001 (linux) |
| Category: |
CategoryAttachments |
Server OS: |
Linux 2.6.32 (x86_64-linux-thread-multi) |
Last update: |
14 years ago |
Hello
Current Situation:
I have documents that are downloaded from my SVN repository and then uploaded to my twiki as attachments.
Drawback:
This causes redundant files: 1 from SVN and another from twiki.
Requirement:
I want that the attachments should not be needed to be uploaded into twiki.
The attachments should be directly downloaded from the SVN repository from my twiki itself (not physically present in my twiki).
Benifit:
Because there will be only one copy of file (from SVN), so I will also be able to refer to only the latest version of that SVN file.
Please suggest me a solution.
Thanks in advance.
TM
--
TWikiGuest - 2012-06-13
Discussion and Answer
Define a rule in your
InterwikiPlugin for your SVN site, then use it like SVN:/path/to/file.png.
--
PeterThoeny - 2012-06-13
You might need to enable auto-props on the Subversion server so that the image files are delivered with the proper MIME type.
--
PeterThoeny - 2012-06-13
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.