<?xml version="1.0" encoding="utf-8"?>
<s1 title="HelpOnConfiguration/FileAttachments"><p></p>
<s2 id="File Attachments Configuration" title="File Attachments Configuration">
<p>The <jump href="/wiki/HelpOnActions/AttachFile">AttachFile action</jump> 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 = [&apos;AttachFile&apos;]</code> to wikiconfig). </p>
<p>This is all you usually need to do for configuration. </p>
<p></p>
<s3 id="How attachments are handled" title="How attachments are handled">
<p>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<strong></strong>File action (via URLs like <code>http://example.org/mywiki/&lt;SomePage&gt;?action=AttachFile&amp;do=get&amp;target=filename.ext</code>). </p>
<p>/!\ 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). </p>
</s3></s2></s1>