Files and Folders: Uploader
Lennart Groetzbach (contact me)
This class generates the form elements for a file upload and stores the
uploaded files in a directory.
- You restrict the file size and the allowed file types easily.
- The uploaded file information is returned in an associative array.
CONSTRUCTOR:
function Uploader()
PUBLIC:
function openForm($action, $add_on = '')
function fileField($size = -1, $fileSize=1048576, $accept='text/*')
function closeForm($addSubmitButton = true)
function uploadTo($path, $overwrite=false, $allowedTypeArray=null)
function wasSubmitted()
function debug()
PRIVATE:
function _error($msg)
PUBLIC VARS:
var $error
| Utility
| Consistency
| Docs
| Examples
| Tests
| Videos
| Overall
| Rank
|
| Not sure (56.3%)
| Sufficient (62.5%)
| Sufficient (62.5%)
| Sufficient (75.0%)
| -
| -
| Not sure (48.1%)
| 1358 |
Click here for detailed information about this class on phpclasses.org