| 1 |
// $Id: README.txt,v 1.5 2009/03/04 05:33:53 quicksketch Exp $
|
| 2 |
|
| 3 |
FileField provides an "File" field type to CCK. It provides many advantages over
|
| 4 |
the Drupal core "Upload" module including:
|
| 5 |
|
| 6 |
* Per-field upload control (file extensions, file size).
|
| 7 |
* Per-node upload size limits.
|
| 8 |
* Multiple fields per content type.
|
| 9 |
* Customizable paths for saving uploads (plus token support for dynamic paths).
|
| 10 |
* Icons for uploaded file types.
|
| 11 |
|
| 12 |
FileField was written by Darrel Opry (dopry).
|
| 13 |
Maintained by Nathan Haug (quicksketch) and Andrew Morton (drewish).
|
| 14 |
|
| 15 |
Dependencies
|
| 16 |
------------
|
| 17 |
* Content
|
| 18 |
|
| 19 |
FileField also provides additional features when used with the following:
|
| 20 |
|
| 21 |
* ImageField (See an image preview during editing.)
|
| 22 |
* Token (Generate dynamic paths when saving images.)
|
| 23 |
* ImageCache (Create thumbnails of images on output.)
|
| 24 |
|
| 25 |
If your site is any larger than a personal blog, you should definitely install
|
| 26 |
the following modules to increase the security and stability of your uploads.
|
| 27 |
|
| 28 |
* Transliteration (Convert unsafe characters to file system safe names.)
|
| 29 |
* MimeDetect (Check the content of files to ensure they match the extension.)
|
| 30 |
|
| 31 |
Install
|
| 32 |
-------
|
| 33 |
|
| 34 |
1) Copy the filefield folder to the modules folder in your installation.
|
| 35 |
|
| 36 |
2) Enable the module using Administer -> Site building -> Modules
|
| 37 |
(/admin/build/modules).
|
| 38 |
|
| 39 |
3) Create a new file field in through CCK's interface. Visit Administer ->
|
| 40 |
Content management -> Content types (admin/content/types), then click
|
| 41 |
Manage fields on the type you want to add an file upload field. Select
|
| 42 |
"File" as the field type and "File" as the widget type to create a new
|
| 43 |
field.
|
| 44 |
|
| 45 |
4) Upload files on the node form for the type that you set up.
|