<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>HelpOnConfiguration/FileAttachments</title></articleinfo><section><title>File Attachments Configuration</title><para>The <ulink url="https://imaging.mrc-cbu.cam.ac.uk/meg/HelpOnConfiguration/FileAttachments/meg/HelpOnActions/AttachFile#">AttachFile action</ulink> enables a page to have multiple attached files. Since file uploads could be abused for DoS (Denial of Service) attacks, <code>AttachFile</code> is an action that may be disabled by the wiki administrator (by adding <code>actions_excluded = ['AttachFile']</code> to wikiconfig). </para><para>This is all you usually need to do for configuration. </para><section><title>How attachments are handled</title><para>Attachments are stored &quot;privately&quot; in the <code>data/pages/</code> directory (with paths like <code>data/pages/&lt;pagename&gt;/attachments/&lt;filename&gt;</code>) and can only be retrieved by using the Attach<emphasis role="strong"/>File action (via URLs like <code>http://example.org/mywiki/&lt;SomePage&gt;?action=AttachFile&amp;do=get&amp;target=filename.ext</code>). </para><para><inlinemediaobject><imageobject><imagedata depth="16" fileref="https://imaging.mrc-cbu.cam.ac.uk/basewiki/moin_static1910/moniker_cbu/img/alert.png" width="16"/></imageobject><textobject><phrase>/!\</phrase></textobject></inlinemediaobject> The <code>direct serving method</code> (deprecated since long) was finally removed in moin 1.7.0. If you have used it until now (<code>attachments = {...}</code>), please copy your attachments into your data directory (and make sure they arrive at the right location there). </para></section></section></article>