]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/forum/Attachment_file_doesn__39__t_get_attached_to_page.mdwn
(no commit message)
[git.ikiwiki.info.git] / doc / forum / Attachment_file_doesn__39__t_get_attached_to_page.mdwn
1 I am trying to use the attachment plugin, but it isn't working the way I expect.
3 I attempted to add a PDF as an attachment `dns_example.pdf` to a example_page (https://notes.example.org/wiki/MiscNotes/dns_docs_page).  The upload appears to happen, I can click the insert links button and links will be inserted into the page.  When I click the save-page button, the attachment does not appear to be attached.  No errors are displayed.
5 On the web server the attachment is at `$srcdir/.ikiwiki/attachments/MiscNotes/dns_docs_page/dns_example.pdf`, but doesn't get copied over to the `$destdir` folder at all.  I would expect that it should have been moved to `$srcdir/MiscNotes/dns_docs_page/dns_example.pdf` and added to the git repo, and then copied over to `$destdir`.  Am I missing some setting in my configuration or something?
7 Is this expected?  Is my file being rejected for some reason?  It is about 100k, which is under the value required by the `allowed_attachments`.  Is there some error logs somewhere that I look at to see more information about why this is failing?
10     # wiki.setup
11     ...
12     # where the source of the wiki is located
13     srcdir: /srv/www/notes.example.org/wiki/wiki.wc
14     # where to build the wiki
15     destdir: /srv/www/notes.example.org/wiki/www
16     # base url to the wiki
17     url: https://notes.example.org/wiki
18     # url to the ikiwiki.cgi
19     cgiurl: https://notes.example.org/wikicgi/ikiwiki.cgi
20     # filename of cgi wrapper to generate
21     cgi_wrapper: /srv/www/notes.example.org/wiki/cgi/ikiwiki.cgi
22     # mode for cgi_wrapper (can safely be made suid)
23     cgi_wrappermode: 06755
24     # rcs backend to use
25     rcs: git
26     # plugins to add to the default configuration
27     add_plugins:
28     - httpauth
29     - pagestats
30     - attachment
31     - 404
32     - table
33     - tag
34     - map
35     - search
36     - repolist
37     - brokenlinks
38     - orphans
39     - autoindex
40     - meta
41     - img
42     - txt
43     - template
44     - theme
45     ...
46     # attachment plugin
47     # enhanced PageSpec specifying what attachments are allowed
48     allowed_attachments: maxsize(15mb)