You edit the configuration file to control how and when various Files operations take place. You use the administrative commands to perform tasks that manipulate Files content. Changes to the configuration file require node synchronization and a restart of the Files server before they take effect. Changes made using administrative commands take effect immediately.
Changing Files configuration property values
Configuration properties control how and when various Files operations take place. You can edit the properties to change the ways that Files operates.
Running Files administrative commands
Use administrative commands to perform tasks that manipulate Files content.
Backing up Files data
Files stores data in both the database and a file system. This adds some complication in keeping the application available to users while backing up data.
Displaying files inline
Configure Files to display files inline instead of as attachments. This is useful when you use the Files API to download and display active content, such as Adobe
® Flash (.swf) files, in your own HTML pages. Enable inline display by changing a configuration property in the files-config.xml
file. Then set the inline
parameter to true
in your download requests.
Restricting file types in Files
You can restrict the types of files that users can upload in Files.
Setting a maximum size on files
You can set maximum sizes for files in the files-config.xml
Setting a maximum size on libraries
Use FilesLibraryService commands to assign a policies to libraries. A library is a set of files owned by a person or community. A policy sets a maximum size for a library.
Working with Files policies
Use the FilesPolicyService commands to add, edit, count, and return information about policies. You apply policies to libraries to set a maximum size on those libraries.
Seeing Files library information
Use FilesLibraryService commands to see information about libraries, such as its owner, type, and size. A library is a set of files owned by a person or community and stored in the database.
Filtering lists returned by commands
Use the FilesUtilService commands to filter lists of maps returned by browse commands.
Printing information returned by commands
Use the FilesPrintService.saveToFile command to print information returned by other commands.
Disabling automatic email notification on download
When an authenticated user downloads a file for the first time, Files automatically sets a preference so that the user receives emails when that file is edited or commented on. The assumption is that users want to receive emails about updates to the file. You can disable this automatic preference-setting by changing a configuration property in the files-config.xml
Disabling file versioning
By default, when a user uploads a new version of a file it becomes the latest version, and all previous versions are kept. Users can see all versions of a file in the user interface. You can disable file versioning in the files-config.xml
Deleting user files from the system
Use the FilesLibraryService delete commands to delete user files.
Finding the location of a stored file
Use the FilesUtilService.getFileById command to locate a file stored in a directory on a file system.
Working with CMIS API object types
Define custom object types as extensions of snx:file.