> i think what itay means is that, from the moment that a user has
> upload rights to ONE page, it's like it has upload rights to all pages
> he can edit, since he then can use the uploaded file in any page.
> the only thing is that the user is forced to use the upload action
> only from the page where he has upload rights.
>
> as a result, upload rights are not page-centric, but user-centric.
> that't the confusion in using pages to control uploads. maybe
> site.auth.upload should be just the list of users that have upload
> rights.
>
> blues

exactly!

> On my site for example, members can load up profile
> pictures, there are all stored in a profile subdirectory and are named
> id.jpg. So on their profile page I can just refer to the graphic using
> their id as part of the file name.
>
> Dan

How did you do that? you have a special action for uploading a profile
image?
(that check the username and uploads to his specific directory)
Still, this works with users and not groups...


The solution I found for letting users to upload to only certain
directory
(In this example to @member group, to dir directory):
- in site.auth.view:
*******
action.upload: @admin
action.upload.dir: @member
*******
- create action.upload.dir which is the same as action.upload.dir,
except this:
*******
[if ! equal "{?dir}" ""][r]
[c]Subdirectory:
[c][text filepath {?dir}]
[if]
*******
becomes this:
*******
[r]
[c]Subdirectory:
[c][hidden filepath dir]dir
*******

The problem is that for each directory I have to create a
action.upload.dirname page (and edit site.auth.view)
which doesn't let: "every user could be allowed to upload only into
his own directory and into a common one." (Marcos)


Another (I guess small) problem, what the markup for files that are in
directories? ([^dir/file.ext^] doesn't work)


Itay.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to