|
OpenSencillo
2016.106
Long live the simplicity of PHP
|
Public Member Functions | |
| __construct ($path) | |
| mimeConfig ($mime=null) | |
| setMimes ($mime=null) | |
| path ($path) | |
| maxSize ($size) | |
| advancedMode ($mode=null) | |
| ajaxSendJson ($respond=null) | |
| name () | |
| upload () | |
Data Fields | |
| $mime | |
| $ajax = false | |
Protected Member Functions | |
| mimeTest ($mime) | |
Protected Attributes | |
| $uploadDirectory | |
| $size | |
| $uploadInfo | |
| $mode | |
| $status | |
Definition at line 11 of file files.upload.fup.php.
| advancedMode | ( | $mode = null | ) |
Advanced upload mode TRUE/FALSE, deafult FALSE
| bool | $mode |
Definition at line 113 of file files.upload.fup.php.
|
final |
Json status encoder for AJAX comunication
Definition at line 129 of file files.upload.fup.php.
| maxSize | ( | $size | ) |
| mimeConfig | ( | $mime = null | ) |
Config method for legal mime types
| string | $mime |
default, if $mime is null
Definition at line 48 of file files.upload.fup.php.
|
protected |
Internal protected function for detection legal mime type
| mixed | $mime |
Definition at line 34 of file files.upload.fup.php.
| name | ( | ) |
Get new file name
Definition at line 144 of file files.upload.fup.php.
| path | ( | $path | ) |
specify upload directory ends with / (slash)
| string | $path |
Definition at line 93 of file files.upload.fup.php.
| setMimes | ( | $mime = null | ) |
| upload | ( | ) |
Upload method
200 - OK 404 - Not found / Unknown error / No file 413 - Request is to large (maximum size is low) 415-0 - Unsupported Media Type (acquired in upload method) 415-1 - Unsupported Media Type (acquired in mimeConfig method) [depecrated] 417 - Expectation Failed (failed moving file from temporary location) 444 - No Response / Internal AJAX fail
Definition at line 160 of file files.upload.fup.php.