File represents a file in the Zimki file store.
Many of the properties of the file objects are changable, but you must call save() afterwards, similarly to the persistency engine. Prior to Zimki 1.10 you could not set arbitrary properties on them, but as of 1.10 we have lifted this restriction; files are now full-blown first class citizens, and every file is actually a 'zimki_file' instance.
Files can be added to your domain via the Portal interface, or by accepting file uploads using a server-side JavaScript method. You can also create them from JavaScript.
The publish and unpublish methods can be used to add/remove publication paths corresponding to the file.
Properties
Methods
|