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):
%3 test_fs_add_delete_copy fs_add_delete_copy (test file-storage) fs::add_version fs::add_version test_fs_add_delete_copy->fs::add_version test_fs_add_file_to_folder fs_add_file_to_folder (test file-storage) test_fs_add_file_to_folder->fs::add_version ad_conn ad_conn (public) fs::add_version->ad_conn ad_file ad_file (public) fs::add_version->ad_file callback callback (public) fs::add_version->callback content::item::set_live_revision content::item::set_live_revision (public) fs::add_version->content::item::set_live_revision content::revision::new content::revision::new (public) fs::add_version->content::revision::new fs::add_file fs::add_file (public) fs::add_file->fs::add_version fs::impl::fs_object::put fs::impl::fs_object::put (private) fs::impl::fs_object::put->fs::add_version packages/file-storage/www/file-add.tcl packages/file-storage/ www/file-add.tcl packages/file-storage/www/file-add.tcl->fs::add_version packages/file-storage/www/folder-zip-add.tcl packages/file-storage/ www/folder-zip-add.tcl packages/file-storage/www/folder-zip-add.tcl->fs::add_version

Testcases:
fs_add_delete_copy, fs_add_file_to_folder
[ show source ]
Show another procedure: