0

We just moved from confluence and I uploaded the attachments to the wikis via the api. When you edit a wiki page, there isn't way insert something from the wiki attachments. It seems that someone would have to download the attachment then upload it when they insert them. Is there something that I am missing?

flag

1 Answer

1

When inserting images into a wiki article in FogBugz, the file upload portion is usually done at the same time. So, for example, you would edit the page, select Insert -> Picture and then specifiy the image you'd like to insert into the wiki page. Thus, the file upload, attachment association, and image insertion all happen together.

When you say you've "uploaded the attachments to the wikis via the api" are you referring to the wikiFileUpload XML API command? If so, after uploading each file, the response you got back from the XML API should have included the ixAttachment for the file you just uploaded. If you're looking to insert these images into a wiki page, you could use these ixAttachment ids and the editWiki XML API command to automatically insert them into the wiki page.

To do so, you would need to build up the s argument to include the HTML for the wiki article. The HTML used for wiki attachments looks like this:

<img border="0" title="" src="default.asp?pg=pgDownload&amp;pgType=pgWikiAttachment&amp;ixAttachment=[ixAttachment goes here]&amp;sFileName=[uploaded file's filename goes here]">
link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.