Tags:
create new tag
view all tags

SID-01485: Get documents from SVN instead of twiki attachments

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Get documents from SVN instead of twiki attachments
SupportCategory CategoryAttachments
TWiki version 5.1.0
Server OS Linux 2.6.32 (x86_64-linux-thread-multi)
Web server Apache/2.2.15 (Linux/SUSE)
Perl version 5.012001 (linux)
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2012-06-13 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.