]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/Unable_to_add_attachments_to_some_pages.mdwn
clarify which case fails
[ikiwiki.git] / doc / bugs / Unable_to_add_attachments_to_some_pages.mdwn
1 I can add attachment to some pages within an ikiwiki site. ( for example the index page ), but I'm unable to add attachments to other child pages.
2
3 When I try I get the error message "Error: bad attachment filename".  I can successfully attach the same file to the index page.
4
5 I'm running
6
7 ikiwiki version 3.20100815.7 on Debian Squeeze.
8
9 Please advise.
10
11
12 > I get the following error in apache error.log
13 > Died at /usr/share/perl5/IkiWiki/CGI.pm line 466.
14 > -- [[aland]]
15
16 > Well, what subpages are you trying to add it to? What is your
17 > `allowed_attachments` PageSpec set to in your setup file? --[[Joey]]
18
19 >> I can reproduce this by creating a new ikiwiki using the auto.setup
20
21 >> I create a subpage of index called "projects" and a subpage of projects called "Firewall Replacement 2010-2011"
22 >> and when I add attachment to the subpages I get the error.
23
24 >> I dont have an `allowed_attachments` section in my setup file
25 >> But I've set an `allowed_attachments` like `allowed_attachments => 'maxsize(40000kb) and mimetype(*)',` and I still get the error.
26 >> Thanks --[[aland]]
27
28 >>> Being the subpage of index is the problem. It's not usual to have
29 >>> any other page as a subpage of index; as there's really no reason to do
30 >>> that, so some code broke in that special case. [[fixed|done]]
31 >>> --[[Joey]]