FileField
FileField provides a generic file upload field for content.module (CCK). It's supposed to be an alternative to upload.module in Drupal core, and provides a CCK field called "File" that you can use in your content types. Versions 5.x-2.3 or later (including all 2.3 release candidates) depend on the MimeDetect module for determining the MIME type of uploaded files.
You can use the Transliteration module to get correctly transliterated filenames, CCK Field Permissions for fine-grained control over user access, and Download Count for (you guessed it) counting your file downoads. Note that enabling the Devel module will probably break AJAX uploads (see this for more information).
As of version 5.x-2.3-rc2 (including all later versions), FileField has a hard dependency on PHP 5.2 (or later). Also, the 5.x-1.0 release is now officially deprecated, please only report bugs against the current 5.x-2.x version and close your (own) 5.x-1.0 bugs if they don't apply anymore.
FileField 5.x-2.x presents a significant improvement over 5.x-1.0, including (but not restricted to):
- Allowed file extensions: now arbitrarily long and case insensitive.
- Appearance: now themeable and AJAXified. Also, the description text is actually used in the node view and in views.
- Options and checkboxes: the "Required" setting is enforced, the upload path is configurable, and the "List" option now actually works as advertised and can be hidden.
- Now also properly works with private downloads.
- Does not mess up your CCK tables.
- Extensible through hook_filefield() for file verification, preparation and various event notifications. You can also override theme_filefield() in your theme in order to modify the HTML output on the node view, and implement file.inc's hook_file_download() for custom file access control.
Upload and enjoy!
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 5.x-2.3-rc3 | 2008-Mar-09 | 22.82 KB | Download · Release notes | Recommended for 5.x | |
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 4.7.x-1.x-dev | 2007-Feb-01 | 11.09 KB | Download · Release notes | Development snapshot | |
