Files Management Solution

Working for 1.1.6.0 to 1.1.6.4 (latest)

The principle

As many Wikka users, I find the upload process cumbersome. So I propose a new way relying on 3 developments and a few principles.
  1. There will be a menulet action in the header and/or footer menus that will allow the user to:
  1. If you are allowed to read a page then you can read/download the attached files
  1. If you are allowed to write a page then you can manage the attachments (add/delete)
Of course all this has to be compliant with the site policy (authorized mimes and maximum sizes).
It is indeed compliant with the ACLs, so it is with my solution of ACLsWithUserGroups.

My solution

Three developments to provide a complete solution:

Screenshots

The menulet: A new header menu links to the attachments (screenshot)
The handler activated: One click to get the files management handler (screenshot)
The action: A list of all attachments for the WikkaPage (screenshot)

How it could be with some nice icons: the paper clip icon is the menulet (screenshot)

To Do

As I cannot have the ModRewrite working on my site, it would be nice if someone could test all this with mod_rewrite.

    1. If you are allowed to write a page then you can manage the attachments (add/delete) On most wikkas the SandBox is writeble for everyone, which means the everyone can upload files there. There could be people who won't want that.
    1. if I upload a file with *.php and use listfiles to list it, and click on it, wikka tries to open it as a method!




CategoryUserContributions
Comments
Comment by JavaWoman
2005-01-12 23:16:35
Christian,
For screenshots: If you have a server somewhere, put the screen shots up there, and then just insert them with an image action.
Comment by ChristianBarthelemy
2005-01-12 23:34:06
Okay, I think I can find a server somewhere...
I will do it tomorrow.
Comment by RubenVerlinden
2005-02-23 22:45:56
@JavaWoman
Isn't it possible to upload an image file using the { {files}} and then linking to it?

{ {image url="uploads/PageName/imagefile.gif"} } doesn't seem to work. Any workaround?
Comment by ChristianBarthelemy
2005-02-24 12:45:28
Hi Ruben,
It is working perfectly for me and this is the way we do it on our wiki:
1) upload the file (using the FilesHandler for us)
2) display it using { {image url="uploads/PageName/imagefile.gif"} }
Have you check if your file has been really uploaded where you think it should have?
Comment by RubenVerlinden
2005-02-25 09:18:55
This seems to work :
{{image class="center" url="http://xxx.xxx.ac.be/DogmaWikki/FileTest/files.xml?action=download&file=context.gif"}}

I just right click on the uploaded file shown with the { {files} } action, copy link location and use that for the link.
Comment by ChristianBarthelemy
2005-02-25 12:03:36
If you have an access to the server, you should definitely check that your image has been stored at uploads/PageName/. Depending on several things (authorized extensions, size of the picture...) the { {files} } action may not upload the file.
Comment by RubenVerlinden
2005-02-28 09:08:29
The image was stored in the uploads/FileTest/ directory. But using the files in a link (a was trying it with the flash action) was only possible as showed two comments up.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki