--
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
http://myserver/twiki/bin/viewfile/Web/SubWeb/SubWeb/Topic?rev=17;filename=usc.xls
This Url takes me to the login page. When I enter the username and password, the Url changes to something like this
"http://myserver/twiki/bin/oops/Web/SubWeb/SubWeb/Topic?template=oopsattention;def=no_such_attachment;param1=viewfile;param2=%3f"
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