Misc patches (Unzip, AttachDir, User Directories)

mathmeye - August 16, 2008 - 09:59
Project:Web File Manager
Version:6.x-2.11
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:ae860300
Status:needs review
Description

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)

AttachmentSize
webfm-6.x-2.9-alpha2.misc_.patch41.06 KB

#1

ae860300 - September 25, 2009 - 07:43

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

AttachmentSize
BUG01.JPG 57.6 KB

#2

ae860300 - September 28, 2009 - 03:12
Version:6.x-2.9-alpha2» 6.x-2.11
Component:Code» Miscellaneous
Assigned to:Anonymous» ae860300

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

 
 

Drupal is a registered trademark of Dries Buytaert.