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