xowiki::markdown_image::discard_attached_draft (private)
xowiki::markdown_image::discard_attached_draft object_id image_id path
Defined in packages/xowiki/tcl/markdown-image-procs.tcl
Drop a staging file after the page and attachment commit.
- Parameters:
- object_id (required)
- image_id (required)
- path (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: if {[db_string xowiki_markdown_image_committed { select 1 from attachments where object_id = :object_id and item_id = :image_id } -default 0]} { file delete -- $path }XQL Not present: Generic, PostgreSQL, Oracle