it looks like this is a solution for uploading figure files via the moinmoin wiki.
Needs adatpations in generated/upload path and the main.tex needs a different figure include path