Closed (fixed)
Project:
Filebrowser
Version:
6.x-2.x-dev
Component:
Directory Listing Pages
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Sep 2011 at 16:55 UTC
Updated:
4 Jan 2014 at 01:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Nicolas Georget commentedActually, it's already done. But I have only one question about that:
In case #1, it's simple but not always the goal.
In case #2, it's a bit tricky because FileBrowser does not refresh the DB <-> Folder's Content (and Sub-folders, etc...)
So if you create a new folder, put some files inside, but never "browsed" by FileBrowser, the archive will only contain the root files. And might be empty also!
I attached a test version. Expand it and move it into the FileBrowser module. Active it as any module. And test it on your devel environment. Not on your prod server!
Comment #2
infoweb13 commentedIn my case, i think, variant "1" will be good. For my, just need ability to download some checked folders\files in one archive.
I am have a question: Why functions download folders and download files is two different buttons? Why users can't download checked files and folders in one click, in one archive?
P.S.
Attachment test version is don't work (( I've enabled module. I checked necessary folders and select "Download selected folders as an ZIP archive (folders only)" and got browser page "page not found".
What i do wrong?
Thx.
Comment #3
Nicolas Georget commentedBecause Yoran has already implemented in the release version the "File Archive" action. If you are module Developer, you know that you only can "hook" a module. Means add a functionality. Therefore, to add the "Folder Archive" action for Filebrowser, you can only hook an action function (hook_filebrowser_actions_info). i.e. http://drupal.org/node/292
After all, It's pretty easy to merge to both actions. And sure Yoran will add the function if it works well.
I knew my hook was buggy, but have a 404 error, this is odd. What is the URL ?
Maybe it comes from the function
filebrowser_download_manager_process()in file browser.moduleCan you modify in this file lines 574 & 577 the PHP header function Content-Disposition:
inlinetoattachmentas following:And try the new attachment. It should download the whole selected folder (and Only one selected folder. does not work yet with multiple folders).
Comment #4
Yoran commentedThanks for this Nicolas :)