fs::add_file (public)
fs::add_file -name name -parent_id parent_id -package_id package_id \ [ -item_id item_id ] [ -creation_user creation_user ] \ [ -creation_ip creation_ip ] [ -title title ] \ [ -description description ] [ -tmp_filename tmp_filename ] \ [ -mime_type mime_type ] [ -no_callback ] [ -no_notification ]
Defined in packages/file-storage/tcl/file-storage-procs.tcl
Create a new file storage item or add a new revision if an item with the same name and parent folder already exists
- Switches:
- -name (required)
- -parent_id (required)
- -package_id (required)
- -item_id (optional)
- -creation_user (optional)
- -creation_ip (optional)
- -title (optional)
- -description (optional)
- -tmp_filename (optional)
- -mime_type (optional)
- -no_callback (optional, boolean)
- -no_notification (optional, boolean)
- Returns:
- revision_id
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- fs_publish_file, fs_add_delete_copy, fs_add_file_to_folder