On Wednesday, September 2, 2020 at 2:55:32 AM UTC-7 [email protected] wrote:
> Hi, > > I want to attach a docx file as well as image files to a wiki page > programatically but could not find any example code doing this. I found > > > https://trac.edgewall.org//wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.attachment.IAttachmentManipulator > > sounds like the right place to start but I was wondering if anyone has > done this and if you could give me some example code. > > Thank you in advance. > >From the command line it can be done using trac-admin: https://trac.edgewall.org/wiki/TracAdmin#FullCommandReference You could use XmlRpcPlugin to remotely add: https://trac-hacks.org/wiki/XmlRpcPlugin Note that the plulgin is not yet compatible with Trac 1.4. >From plugin code you insert an attachment using the Attachment class: https://www.edgewall.org/docs/branches-1.4-stable/html/api/trac_attachment.html#trac.attachment.Attachment - Ryan -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/trac-dev/2c616fed-5a9f-4ef2-adef-f94e9000da9en%40googlegroups.com.
