Forum OpenACS Development: Re: Proposal for simplified site-wide image upload

Collapse
Posted by Dave Bauer on
Malte,

Sure using the package_id of the current package works pretty well, and would probably set permissions in a reasonable manner. Or using the subsite_id (or package id of dolrn community, in that case) would also make sense, restricting the image to the subsite it was contributed in.

The clipboard adds additional effort to use the image. In our case we want to mainly support adding the image during authoring of the content, so we definitely want to allow inline uploading.

The image url would just contain the item_id of the image object in the content repository and would not refer to any other objects, so it should be totally generic. Using /o/ makes sense, but we want the URL to _look_ like and image url and contain the filename, so we need a handler that can do that.