The update_image(): function resides here:

.../cms/homepage/update_image

where cms is the application.

Whereas I would like the image to be uploaded to this folder:

.../init/uploads/company_xxx

where init is the application


How do I have to adjust this line of code to get it to work.

db.image.file.uploadfolder=os.path.join(request.folder,"uploads/%i" %
auth.user.company_id)

To append the company_id to company_ what is the best way: "uploads/
company_%i" % auth.user.company_id or "uploads/%i" % "company_" +
auth.user.company_id


I realize I could also upload the images to the .../cms/uploads/
company_xxx folder and then change the downloads function in the .../
init/homepage/ controller to download the images from the cms/uploads/
company_xxx folder, is this a better way to proceed?


Kind regards,

Annet.


Reply via email to