This class is used to manage file upload using ajax.
More...
|
| | getFullUrl () |
| | Return full URL. More...
|
| |
| | setFileDeleteUrl ($file) |
| | Set delete url. More...
|
| |
| | getFileObject ($file_name) |
| | getFileObject More...
|
| |
| | getFileObjects () |
| | getFileObjects More...
|
| |
| | createScaledImage ($file_name, $options) |
| | Create thumbs of a file uploaded. More...
|
| |
| | validate ($uploaded_file, $file, $error, $index) |
| | Enter description here ... More...
|
| |
| | upcountNameCallback ($matches) |
| | Enter description here ... More...
|
| |
| | upcountName ($name) |
| | Enter description here ... More...
|
| |
| | trimFileName ($name, $type, $index) |
| | trimFileName More...
|
| |
| | handleFileUpload ($uploaded_file, $name, $size, $type, $error, $index) |
| | handleFileUpload More...
|
| |
This class is used to manage file upload using ajax.
Definition at line 31 of file fileupload.class.php.
| FileUpload::__construct |
( |
|
$options = null, |
|
|
|
$fk_element = null, |
|
|
|
$element = null |
|
) |
| |
| FileUpload::createScaledImage |
( |
|
$file_name, |
|
|
|
$options |
|
) |
| |
|
protected |
Create thumbs of a file uploaded.
Only the "mini" thumb is generated.
- Parameters
-
| string | $file_name | Filename |
| string | $options | is array('max_width', 'max_height') |
- Returns
- boolean
Definition at line 273 of file fileupload.class.php.
References dol_mkdir(), and vignette().
| FileUpload::getFileObject |
( |
|
$file_name | ) |
|
|
protected |
| FileUpload::getFileObjects |
( |
| ) |
|
|
protected |
| FileUpload::getFullUrl |
( |
| ) |
|
|
protected |
| FileUpload::handleFileUpload |
( |
|
$uploaded_file, |
|
|
|
$name, |
|
|
|
$size, |
|
|
|
$type, |
|
|
|
$error, |
|
|
|
$index |
|
) |
| |
|
protected |
| FileUpload::setFileDeleteUrl |
( |
|
$file | ) |
|
|
protected |
| FileUpload::trimFileName |
( |
|
$name, |
|
|
|
$type, |
|
|
|
$index |
|
) |
| |
|
protected |
trimFileName
- Parameters
-
| string | $name | Filename |
| string | $type | ??? |
| string | $index | ??? |
- Returns
- string
Definition at line 390 of file fileupload.class.php.
| FileUpload::upcountName |
( |
|
$name | ) |
|
|
protected |
| FileUpload::upcountNameCallback |
( |
|
$matches | ) |
|
|
protected |
| FileUpload::validate |
( |
|
$uploaded_file, |
|
|
|
$file, |
|
|
|
$error, |
|
|
|
$index |
|
) |
| |
|
protected |
Enter description here ...
- Parameters
-
| string | $uploaded_file | Uploade file |
| string | $file | File |
| string | $error | Error |
| string | $index | Index |
- Returns
- boolean True if OK, False if KO
Definition at line 305 of file fileupload.class.php.
References $_SERVER.
The documentation for this class was generated from the following file: