File management in Drupal 6: FileField Sources

There are plenty Drupal modules that offer ways to upload new files and to attach them to nodes. There's the core upload module, the image module that creates an image content type, filefield that creates a CCK field, ... The options are much more limited when it comes to re-using already uploaded files. You could use a nodereference field or image_attach to link image nodes, or a WYSIWYG plug-in like IMCE, or the WebFM module, and that about covers it.

For a current project in Drupal 6 I was looking for a CCK widget that allowed me to upload new files as well as easily access existing files. Drupal 5 has the asset module and Drupal 7 will have the wonderful media module but for Drupal 6 the options are very limited. After a lot of searching I came across the FileField Sources module. It enhances the filefield module (that allows you to upload new files) by adding a way to import files by url and by adding an autocomplete field to search for existing files. One of its most interesting features for me was the bridge with IMCE. All in all these three extra options allow for an incredible flexibility in file management. And because the selected file eventually ends up in a filefield field it can be plugged into the multitude of modules that support it, such as media mover for instance.

Filefield Sources

Comments

Hello, I was looking for the

Hello,

I was looking for the same thing!
Thank you very much for this useful post & blog, Wim!

I tried this. Extracted and

I tried this.
Extracted and enabled the module, but nothing happened.

The file field is the same as before. I can't see the options to reference or select a file, just the plain old upload...

What did I do wrong?

If you edit the filefield of

If you edit the filefield of the content type, there's a "File sources" fieldset with a couple of options.

Post new comment

The content of this field is kept private and will not be shown publicly.