I have just abandoned my ambitious one-man CMS project in favour of Drupal. (Finally getting tired of reinventing the wheel and maintaining it alone... :P) And thus I need some help to a task is really important for my website. Allthough there are thousands of pages with documentation and forum posts here at drupal.org I have not been able to figure out how I can publish files uploaded to a folder via FTP. Allso I'd like to keep download statistics of published files, as well as present them in a nice way.

Can this be done with drupal now (running 4.7 beta1)?
If not, are anyone working on a module to do it?

I have a rough plan for a filepublishing module that I could make, but I felt like checking if there allready was projects in the making that I could help out instead of reinventing the wheel (again...)

BTW, I will be publishing Music files and php/mysql projects.

Olegu
http://www.zbz5.net (still running "stable alpha" version of my one-man CMS project)

Comments

Vidarls’s picture

<bump>

sym’s picture

<bump again />

zach harkey’s picture

If I understand your question, you are looking for some kind of embedded file manager-type interface to Drupal.

As far as I know there isn't one. I've tried all the modules and been pretty disappointed. Perhaps the WebDAV API will offer something.

As it stands, your content has to be entered into the database as text, or in the case of music files or php projects, you would need to use the upload or attachment module to attach your file(s) to a node.

If you choose php as your input type, you can also include a file from anywhere on the server:

<?php include $_SERVER['DOCUMENT_ROOT'].'/path/to/file.php' ?>

-zach
------------------------
harkey design

: z

Vidarls’s picture

Noone anwered in time, so I coded my own filepublishing module.

It's not suited for anything but publishing file uploaded with ftp.

To see the result check out the downloads on my homepage (http://www.zbz5.net/)

There are still loads of issues with it (stopped working properly when I installed 4.7 beta3) so I have not released the code yet. But if people are interrested I could set it up as a project here at Drupal.org. What I'm a bit worried about is that too many 'filemanager' modules will just cause confusion. Cause imho the best thing would be some sort of standard way of handling files, whethere they are attachments or files to be published. Some sort of core filemanager with support for an FTP upload dir would be great.
But I needed this functionality ASAP so I did not even start to think of how to make this common filemanager work. (I believe I saw another thread here where people started to share ideas about a common filemanager module though..)

-Olegu
http://www.zbz5.net/

sym’s picture

I think you should set it up as a project, it would help me a lot to have something like this, but you're right, there are loads of file modules.

I am amazed that there is no way to add large files that are private. I have a video that I what people to sign up to download, but I can't do it! Or am I wrong?

Vidarls’s picture

(again :-P ) with my module, each file published is a node, and access to those nodes can be restriced just as any other node. i.e. you can use taxonomy access control on them, or just make all nodes of type 'file' private.

I will try to set up the project as soon as I get time then, at least by the end of this week.

-Olegu
http://www.zbz5.net/

clandmeter’s picture

I was looking for a module which can support large files which can be uploaded via FTP. Please keep me updated on your module and if i can help let me know.

-Carlo

Narph’s picture

Looking for the same thing

Vidarls’s picture

I've unfortunately not had time to work on this the latest month, but I've finally gotten my CVS account, so I'll try to publish my module as soon as I get time

-Olegu
http://www.zbz5.net/

drewish’s picture

have you looked at the audio module? it makes it really easy to publish audio... there's some code to do batch imports (http://drupal.org/node/40889)

Vidarls’s picture

I solved it for the time being, but I'd really like file handling to be better integrated with the rest of Drupal
read my thoughts here: http://groups.drupal.org/node/406

('ll try to remember posting the preliminary file publishing module I came up with when I get home.)
-Olegu
http://www.zbz5.net/

Vidarls’s picture

Here is a link to the filepublisher module:
http://www.zbz5.net/files/published/zbz5.zip
I should have just directed you to a filepublisher node on my website, but my webhost lost my entire database and I have not yet had the time to fix it.

-Olegu
http://www.zbz5.net/

Rosamunda’s picture

I´ve followed all steps on the readme file, and no matter what, it keeps appearing "A file must be selected for a new entry" each time I want to upload a file using the module.

Is it a bug or I´m missing something?
Thanks in advance!!!

Rosamunda

Vidarls’s picture

<shameful>Well, eh my module is broken...</shameful>
I found out that somwhere between beta1 and rc1 the way Drupal transfers the value of checkboxes and radioboxes changed. And I believe that to be the reason why my module is broken. Due to a series of most unfortunate events my personal website, where I intended to use this module, is down to a bare minimum. And thus my development of a filepublishing system for Drupal have somewhat stagnated.
Hopefully I'll fix it, or come up what an alternate solution before the end of July when I get a new host.
If anyone is inpatient, please feel free to fix the existing code, I'll try to help out as good as I can. Unfortunately I don't have too much time to work on my personal projects the next month. This is because I have to work on two other projects that is supposed to be delivered this summer. One simple business presentation site, and another much bigger porject. Both based on Drupal of course :-)

-Olegu
http://www.zbz5.net/

orces’s picture

Hi Olegu,

did you find any solution? I need same features. Here is what I would like to do:

I need videos to be FTPed to the server. From there transcoded and placed in a separate folder for streaming on the Drupal site. The original file should be placed in a separate folder available for user downloads. Any suggestion how I could achieve that. It would be also cool to have a upload manager implemented (in case of connection failure) and a upload progress bar.

Looking forward to your respond.

THX Tansel