addin transaction control in upload_media task