if field is the upload field you can set

db.table.field.uploadfolder = ....

It can be anything. If you make this user dependent (is the
uploadfolder depends on the logged_in user) you will run into one
problem. User A uploads and image into pathA. If user B wants to
download the image posted by user A, web2py will search for it in
pathB. I would not do it let the database, not the file system know
what is what.

On May 27, 4:13 am, annet <[email protected]> wrote:
> In web2py I have a cms application and an init application. In the cms
> application I have a function in which users can upload images for a
> view which contains four images, the problem is that this view is in
> the init application not in the cms application, whereas the images
> end up in the uploads folder of the cms application.
>
> Is there a way to upload the in the cms application into the uploads
> folder of the init application. Furthermore I would like to let every
> user have his own subfolder in the uploads folder, is that possible?
> If so, how would I implement that?
>
> Kind regards,
>
> Annet.

Reply via email to