| 1 |
Description
|
| 2 |
-----------
|
| 3 |
This module adds a full featured file management API for your modules to use. This API is module development and does not directly add functionality to your site. This module is required for the attachment module which is an alternative to Drupal's included upload module.
|
| 4 |
|
| 5 |
Key Features
|
| 6 |
------------
|
| 7 |
* Simultaneous support of both public and private files. Your module can now decide to when to protect a file.
|
| 8 |
* Support for large numbers of files. This module prevents one directory from having to many files which can cause problems managing the filesystem.
|
| 9 |
* Duplicate file name support. Your module can manage the namespace instead of being forced to rename files and confusing users.
|
| 10 |
* Disk space limits can be set by file area allowing different modules to have different limits.
|
| 11 |
|
| 12 |
Usage Notes
|
| 13 |
-----------
|
| 14 |
|
| 15 |
When using the API, be sure that your module adds an 'enctype' attribute to your
|
| 16 |
form that has the value 'multipart/form-data' which can be done with the following line:
|
| 17 |
$form['#attributes'] = array('enctype' => 'multipart/form-data');
|
| 18 |
|