Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Bureaucracy plugin - file upload destination
ury20 #1
Member since Nov 2017 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Bureaucracy plugin - file upload destination
When I use a file field for creating new wiki page, file is uploaded to sub folder (namespace) which is named as the newly created page.
Does anybody know if I can set the destination for file upload? I would like to upload the file to folder (namespace) where the page is created.

Thank you.
Avatar
MBromley #2
Member since Aug 2018 · 4 posts
Group memberships: Members
Show profile · Link to this post
Did you have any luck with this?

For some reason any file type other than a .pdf results in the email not sending.  I'd like to at least have the files uploaded to a namespace so they are stored somewhere and I can still find it if the email didn't work.
ury20 #3
Member since Nov 2017 · 2 posts
Group memberships: Members
Show profile · Link to this post
I didn't find a way to tell the bureaucracy plugin to upload to the current namespace  :rolleyes:.
I ended up using the upload plugin (https://www.dokuwiki.org/plugin:upload) in addition. With this plugin, you can define the upload path as well and you can use keywords for things like the current namespace.
I ended up with the following one-liner in my template for bureaucracy action:
{{upload>@current@|RENAMEABLE}}

It works very well for me, but I need only upload functionality.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-12-16, 07:04:02 (UTC +01:00)