You are here: Foswiki>Tasks Web>Item2240 (21 Dec 2014, GeorgeClark)Edit Attach

Item2240: attachments via view: nameconversion on "save as"

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: TopicAttachment
Branches:
Reported By: MichaHayler
Waiting For: Main.MichaHayler
Last Change By: GeorgeClark
We´re using the "attachment access via view-script" method
# from apache.conf
RewriteRule ^/+foswiki/+pub/+(.*)$  /foswiki/bin/viewfile/$1 [L,PT]
to apply the rights-management to the pub-dir (attachments) to.

Little drawback: trying save an attachment via the browser "Save as" function (context menu) generates a converted attachment name (all lowercase, _ to - ; eg FooFile_2009.txt gets foofile-2007.txt). Would be better to preserve the attachment filename.

We´re using foswiki 1.0.7.

Thanks.

-- MichaHayler - 12 Oct 2009

I have no idea what sort of configuration you are running, but that rewrite rule should not have the effect you describe.

Much more detail on how to reproduce this problem is required, please.

-- CrawfordCurrie - 29 Jun 2010

We are encoutering the same problem. The renamed attachments seem to have something todo with the viewfile script: For more info see the related problem in TWiki: http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item6602

-- NathanSanders - 14 Jun 2011

I've created http://trunk.foswiki.org/Sandbox/TestCaseSensitivity with an attachment - SomeCaseFile.txt. And create this viewfile link Context menu save-as seems to work fine.

-- Main.GeorgeClark - 21 Dec 2014 - 19:25

ItemTemplate edit

Summary attachments via view: nameconversion on "save as"
ReportedBy MichaHayler
Codebase 1.0.7
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Engine
Component TopicAttachment
Priority Normal
CurrentState No Action Required
WaitingFor MichaHayler
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r5 - 21 Dec 2014, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy