This patch includes (hopefully) all of Frank Steiner's excellent patches to WebFM. Please note that none of the alterations In addition I have mad eare ready for primetime, this should just be a source of inspiraion. I have altered the follwoing:

New features:
1. Attach all files in directory. Menu option for a file to attach all files in current dir to node.
2. Unzip ZIP-Archive menu item
3. Support for User directories using tokens

Changes:
- Frank Steiner's patches applied
- Some premission changes to allow non-admin usres to cerate (and remove) directories

Issues:
1. Attach all files in directory messes up order of files (no control which upload is completed first) hence a ugly hack in the 'update' call to sort files by filename (I use it for images, so this makes sense to me)
2. Just ugly code for unzip really
3. I suggest simply the token [user] for user directories.

Missing:
- I have also hardcoded Imagecache Preview for Image Files (instead of the gif icon). But since this is hardcoded (can not get the correct pathnames otherwise somehow) I left it out here. Happy if someone can help...

Patch applies to 6.x-2.9-alpha2 (not tested on HEAD)

CommentFileSizeAuthor
#1 BUG01.JPG57.6 KBae860300
webfm-6.x-2.9-alpha2.misc_.patch41.06 KBmathmeye

Comments

ae860300’s picture

StatusFileSize
new57.6 KB

Use webfm module, then want to change to upload zip files automatically extract and then saw the module site has patches to achieve results.

However, post-implementation is still not automatically Solutions ~

Who can help me would like to ask ~ ~ pointing ~ ~

And the implementation of the patch did not feel the code to the specified code in the ~ ~

2. Unzip ZIP-Archive menu item

ae860300’s picture

Version: 6.x-2.9-alpha2 » 6.x-2.11
Component: Code » Miscellaneous
Assigned: Unassigned » ae860300

help~
how auto upload zip can unzip~
no menu item unzip

nhck’s picture

Component: Miscellaneous » Code
Assigned: ae860300 » Unassigned
Status: Needs review » Needs work

mathmeye, I am very sorry that there was no time to adress this issue earlier: Thank you for providing this. Now my question is: Can you provide single patches for each functionality, please? Especially having Frank Steiners patches in there is making it hard to review this patch.

Thank you very much.

nhck’s picture

Status: Needs work » Closed (fixed)