[pmwiki-users] Re: File attachments and upoads (was Re: Re: Extended uploads for v2)

chr at home.se chr at home.se
Wed Mar 2 15:30:38 CST 2005


On Wed, 2 Mar 2005, Patrick R. Michaud wrote:

> The possibility of an "uploads:" prefix is explicitly mentioned on the
> Cookbook.UploadGroups page.  :-)  It's easy to add into the intermap.
  
Oh, I should say that I don't merely mean it as a prefix... it should also
allow you to upload files just like Attach: do.
 
> Uh, no, or at least not by default.  I haven't said anything
> about creating nested group+page subdirectories -- by default
> the attachments are still organized "per-group" with the admin
> having the option of changing this structure.

Ah.. ok, now I understand (and it makes more sense as well - not the least 
about not breaking backwards compatibility).

> > The advantage as I see it with uploads: is that you can normally just take
> > the URI of an attached file (or as you intend it to be) and replace the
> > beginning with "uploads:". That should be easy for users to understand. 
> 
> Somehow I have trouble with the combination of "the uri of an attached
> file as you intend it to be" and "easy for users to understand".
> Most users don't have any idea or intention of uri structure, especially
> when it's hidden behind an attach/upload interface.

I guess my users are more savvy than normal... in addition I was planning 
to add a markup that generates the directory tree of uploads/. 

> > In addition, this would allow me to extend the syntax to allow arbitrary
> > paths after uploads:, i.e. not necessarily the name of a existing group 
> > and/or page.
> 
> The uploads: intermap syntax certainly allows this.

Well, I would also want to be able to use

	uploads:LyX/Presentation/Muenchen2005.tar.gz

to actually let me upload that file if it doesn't exist yet...

> > Looking at the last example, I'm not happy about the '.' to separate
> > Group.Other... At wiki.lyx.org it's useful to be able to create
> > directories with periods in the name (e.g. lyx-1.3.2/ and lyx-1.3.3/).
> 
> As currrently formulated wikigroups cannot have periods.  It's not
> a restriction of the attachments interface, it's a restriction on
> page names.  (Put another way -- what follows "Attach:" isn't a url
> path.)

I know, but I extended this in my upload-extended (can't remember the 
exact name right now). The only problem I remember was having to check the 
path so that it stays within the uploads/ area.

> > What is the status of this code right now? It seems silly for me to try 
> > and create an UploadExtended if this is almost ready. In that case it'd 
> > probably be better if I tried using that on a beta-version of wiki.lyx.org 
> > first.
> 
> It's still mostly in my head -- I know exactly how to implement it but
> just haven't had a chance to do so.  Plus your messages are the first
> extended discussion on the topic, and as you said at the beginning
> of your message there may be some bad implications for this.  One
> problem with immediately releasing the feature in code is that if
> people start using it then it's hard to get rid of if we decide it's
> bad.  :-|

Well, thinking a bit more about it I realize that simply adding an 
uploads: that lets me upload files in addition to being a prefix would 
probably solve most of my problems. Maybe you could help me figure out 
what I'd need to add in order to fix this. I guess it'd have to work in 
conjunction with the normal attach-code.

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list