[pmwiki-users] Re: Extended uploads for v2

chr at home.se chr at home.se
Wed Mar 2 05:33:07 CST 2005


On Tue, 1 Mar 2005, Patrick R. Michaud wrote:

> > 	http://pmwiki.org/wiki/Cookbook-V1/UploadExtended
> > 
> > Basically I want to achieve the following:
> > * Allow paths to be used together with the upload-related directives 
> >   Attach: and (:attachlist:)
> > * Allow (:attachlist <dirpath>:) to list only files for a 
> >   specific group/directory.
> > * Allow international characters in filenames and paths. 
> 
> International characters (and spaces) already work for
> filenames and paths in v2.

Good, I suspected that.

> I've already got designs for accessing other pages' attachments 
> in the standard distribution.

Other pages' attachments... do you mean creating a simple option for 
local/config.php that when enabled means that files are attached to pages 
rather than groups?
And in connection with that, you would extend the markup as below:

> Essentially, I'm thinking the Attach: markup will become:
> 
>     Attach:file.txt                - file.txt attachment for the current page
>     Attach:Other/file.txt          - file.txt as attached to [[Other]]
>     Attach:Group/Other/file.txt    - file.txt as attached to [[Group/Other]]
>     Attach:Group.Other/file.txt    - file.txt as attached to [[Group.Other]]

Or do you mean that the above would be enabled by standard?

Anyway, regarding wiki.lyx.org, there are quite a few files uploaded and
referred to using the extended syntax I used before. The lack of this 
functionality is actually what has kept me from upgrading the site to 
pmwiki-2 - in short I have to get this working before I can do the 
upgrade.

As for the syntax and file structure, since a lot of the links and markup
work this way, I'll probably have to keep it the way it is. In my case
it's not much of a problem to use a syntax that is very similar to normal
file paths - most of the user's are quite computer savvy.

To be honest though, the whole file situation is a bit of a mess since
users have over time inadvertently uploaded files to the wrong place and
there is no mechanism for deleting them. I think a proper file managing
tool is what is really needed.

But back to this issue. I looked at how files have been uploaded on
wiki.lyx.org and while attaching files to pages would work for many of the
cases, it wouldn't work all the time. For instance, I could have a
situation like this:

	uploads/
        |-- LyX/
            |-- Presentations/
		    |-- Muenchen-2004-11-01.tar.gz
                    |-- Muenchen-2004-11-01/
                    |   |-- pres.lyx
		    |   '-- playtypus.eps
	            |-- Muenchen-2005-12-04.tar.gz
		    |-- Muenchen-2005-12-04/
		    |   |-- pres.lyx
	            |   |-- pres.pdf
	 	    |   '-- playtypus.eps
	            ...

This is an imaginary scenario with a page referring to different 
presentations. Here it'd be annoying to force the creation of a separate 
page for each presentation.

In addition, I think you'd get into problems if you rename a page after 
you have uploaded files to it. 

> I also haven't made any designs or plans for changing
> (:attachlist:) to list attachments on other pages.

In my experience that's quite important, i.e. being able to list
attachments for a single page/directory. Primarily because it's a
convenient way to get links to a small group of files that belong
together.

/Christian

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





More information about the pmwiki-users mailing list