• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4999: Attachment files cannot be viewed directly from the URL

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension NatSkin Normal No Action Required   n/a 4.2.0

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


-- TWiki:Main/AnithaMadhan - 21 Nov 2007

I would like to access an attachment through the URL from an email.

Clicking on the link takes me to the login page of Twiki. Once I login using the username and password, it gives me a message saying "Attachment ? does not exist".

When i click on the link, the Url is something like this


This Url takes me to the login page. When I enter the username and password, the Url changes to something like this


But when I first login to Twiki and then click on the link, it lets me to view the file.

-- TWiki:Main.AnithaMadhan - 21 Nov 2007

This is a wanted behaviour. TWiki manages the access control of all attached files. Doing so you can restrict all direct access to the /pub location on your webserver. (In the ealier days of TWiki there was no access restriction on /pub and users could directly access the files no matter what access restrictions were on them.) If you want to access files directly from an email you have to either write the URL on your own (%PUBURL%/%WEB%/%TOPIC%/file.txt) or you have to change your templates (replace the link to viewfile with a link build upon %PUBURL%.

-- TWiki:Main.OliverKrueger - 21 Nov 2007

Summary Attachment files cannot be viewed directly from the URL
ReportedBy TWiki:Main.AnithaMadhan
Codebase 4.2.0
SVN Range TWiki-4.3.0, Thu, 15 Nov 2007, build 15610
AppliesTo Extension
Component NatSkin
Priority Normal
CurrentState No Action Required


TargetRelease n/a
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r2 - 2007-11-21 - OliverKrueger
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback