Forum OpenACS Development: Re: Changing Name and Title in File Storage

Collapse
Posted by Malte Sussdorff on
I added the parameter BehaveLikeFilesystemP on oacs-5-1. The first thing I did was modify index.vuh to deliver files (especially HTML Pages) without the OpenACS template if the parameter is set to 1. This allows you to upload your HTML content and display it just like in Dreamweaver or other tools of your choice.

Furthermore, if BehaveLikeFilesystemP is true, it will try to find files from the upgrade where the relative linking is broken. As this only affects sites where you assume FileStorage to behave like a file system, I think this is okay.

Obviously this needs more testing by power users, but I think it is working fine for the moment.

The default for BehaveLikeFilesystemP is true, but if the parameter is not set (e.g. after an upgrade), the beviour defaults to false. This means, if you upgrade, you still have the old behaviour but on a new installation File Storage actually behaves like a File System.

More on the todo list:

- Fix the folder issue.
- Allow upload of Compressed files and keep their internal folder structure.