aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/Attachment_file_doesn__39__t_get_attached_to_page.mdwn
diff options
context:
space:
mode:
authorhttps://me.yahoo.com/zoredache#d4929 <Zoredache@web>2016-06-09 16:01:52 -0400
committeradmin <admin@branchable.com>2016-06-09 16:01:52 -0400
commit142d8b7a7972d011595bd509f529584eeef9e326 (patch)
tree54071e5ec982391b78cc517cf32ed71f0fd263b5 /doc/forum/Attachment_file_doesn__39__t_get_attached_to_page.mdwn
parentf8870b5af78a457377a1e134e41fefe6cb436677 (diff)
downloadikiwiki-142d8b7a7972d011595bd509f529584eeef9e326.tar
ikiwiki-142d8b7a7972d011595bd509f529584eeef9e326.tar.gz
Diffstat (limited to 'doc/forum/Attachment_file_doesn__39__t_get_attached_to_page.mdwn')
-rw-r--r--doc/forum/Attachment_file_doesn__39__t_get_attached_to_page.mdwn51
1 files changed, 51 insertions, 0 deletions
diff --git a/doc/forum/Attachment_file_doesn__39__t_get_attached_to_page.mdwn b/doc/forum/Attachment_file_doesn__39__t_get_attached_to_page.mdwn
new file mode 100644
index 000000000..6a278c5bb
--- /dev/null
+++ b/doc/forum/Attachment_file_doesn__39__t_get_attached_to_page.mdwn
@@ -0,0 +1,51 @@
+I am trying to use the attachment plugin, but it isn't working the way I expect.
+
+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.
+
+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?
+
+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?
+
+Chris
+
+
+ # wiki.setup
+ ...
+ # where the source of the wiki is located
+ srcdir: /srv/www/notes.example.org/wiki/wiki.wc
+ # where to build the wiki
+ destdir: /srv/www/notes.example.org/wiki/www
+ # base url to the wiki
+ url: https://notes.example.org/wiki
+ # url to the ikiwiki.cgi
+ cgiurl: https://notes.example.org/wikicgi/ikiwiki.cgi
+ # filename of cgi wrapper to generate
+ cgi_wrapper: /srv/www/notes.example.org/wiki/cgi/ikiwiki.cgi
+ # mode for cgi_wrapper (can safely be made suid)
+ cgi_wrappermode: 06755
+ # rcs backend to use
+ rcs: git
+ # plugins to add to the default configuration
+ add_plugins:
+ - httpauth
+ - pagestats
+ - attachment
+ - 404
+ - table
+ - tag
+ - map
+ - search
+ - repolist
+ - brokenlinks
+ - orphans
+ - autoindex
+ - meta
+ - img
+ - txt
+ - template
+ - theme
+ ...
+ # attachment plugin
+ # enhanced PageSpec specifying what attachments are allowed
+ allowed_attachments: maxsize(15mb)
+