Forum OpenACS Development: Using the Content Repository to store files

I've been looking at storing files at the content repository directly as some people suggested to me but I don't know if that's possible or the API to do that.

Does anyone know how to store files in the content repository?
I've read http://rubick.com:8002/openacs/content_repository and that's OK to store database content but there is not explained how to store files.

It seems that Ernie is using file-storage 5.1 and that's what I will stick to if I don't find a way to do it directly with the CR.
http://cvs.openacs.org/cvs/*checkout*/openacs-4/packages/lorsm/www/doc/lorsm_installation.html

Collapse
Posted by Ernie Ghiglione on
Hi Eduardo,

You can have a look at the file-storage package and the way it uses the CR API.

In most cases, if you just need to store files and nothing more fancy than that, then you can go right ahead and use file-storage (which I would recommend so you don't have to reinvent the wheel). In addition, since someone in the community mantains the FS package, you can relay on future improvements and maintenance. Summarizing: reusing functionality that is already there is a good idea 😉

However, if the functionality you are trying to implement requires a higher specialization, then you might want to user the CR API directly.

Ernie