Hi Carl,
This is a limitation in HyperContent 1.4 - you can only specify files
at particular depths. So you would have to have several resource
directories, "/*", "/*/*", "/*/*/*", etc., to cover the possible
depths. In version 2.0 you can use ** patterns: "/**/*" indicates a
file can go anywhere. It is not a trivial upgrade, so I don't think it
would be too easy to backport into 1.4, but if you can hold out a
couple more months perhaps you could upgrade to 2.0. Technically the
upgrade will be pretty easy, but users will have to be trained a bit on
the revised GUI.
Alex
On Jan 18, 2005, at 4:32 AM, Carl Barrow wrote:
> Hi Alex
>
> I would like my users to have the ability to upload a file to any
> directory. At the moment they can add files to a 'downloads' directory
> :
>
> - <#> <resource-directory label="*Add a New Downloadable File*"
> path="*/downloads/**" publish="*true*">
> <content type="*application/msword*" />
> <content type="*application/pdf*" />
> <content type="*application/vnd.ms-excel*" />
> <content type="*application/vnd.ms-powerpoint*" />
> </resource-directory>
>
> How can I change the code to allow the upload to anywhere?
>
> Thanks
> Carl
>
> --
> ************************************
>
> Carl Barrow
> Web Developer
> e-Services
> The University of Hull
> Cottingham Road
> Hull
> HU6 7RX
> Ext. 6838
> ************************************
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Hypercontent-users mailing list
> Hyp...@li...
> https://lists.sourceforge.net/lists/listinfo/hypercontent-users
|