fs::add_version (public)
fs::add_version -item_id item_id [ -name name ] \ [ -package_id package_id ] [ -mime_type mime_type ] \ [ -tmp_filename tmp_filename ] [ -content_body content_body ] \ [ -creation_user creation_user ] [ -creation_ip creation_ip ] \ [ -title title ] [ -description description ] \ [ -suppress_notify_p suppress_notify_p ] \ [ -storage_type storage_type ] [ -no_callback ]
Defined in packages/file-storage/tcl/file-storage-procs.tcl
Create a new version of a file storage item.
- Switches:
- -item_id (required)
- -name (optional)
- -package_id (optional)
- -mime_type (optional)
- -tmp_filename (optional)
- absolute path to a file on the filesystem. when specified, the new revision data will come from this file.
- -content_body (optional)
- Text content for the new revision. When 'tmp_filename' is missing, the new revision data will come from here.
- -creation_user (optional)
- -creation_ip (optional)
- -title (optional)
- -description (optional)
- -suppress_notify_p (optional, defaults to
"f"
)- -storage_type (optional)
- -no_callback (optional, boolean)
- Returns:
- revision_id
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- fs_add_delete_copy, fs_add_file_to_folder