Class WireUpload
ProcessWire WireUpload
Saves uploads of single or multiple files, saving them to the destination path. If the destination path does not exist, it will be created.
ProcessWire 2.x Copyright (C) 2010 by Ryan Cramer Licensed under GNU/GPL v2, see LICENSE.TXT
- Wire implements TrackChanges
-
WireUpload
Located at core/Upload.php
public
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
protected
|
|
protected
|
|
public
|
|
public
|
|
protected
|
|
public
|
|
public static
|
|
public static
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
this
|
|
public
|
_(),
___changed(),
__call(),
__get(),
__toString(),
_n(),
_x(),
addHook(),
addHookAfter(),
addHookBefore(),
addHookProperty(),
className(),
fuel(),
getAllFuel(),
getChanges(),
getFuel(),
getHooks(),
isChanged(),
isHooked(),
message(),
removeHook(),
resetTrackChanges(),
runHooks(),
setFuel(),
setTrackChanges(),
trackChange(),
trackChanges(),
untrackChange(),
useFuel()
|
protected
|
$name | |
|
protected
|
$destinationPath | |
|
protected
|
$maxFiles | |
|
protected
array
|
$completedFilenames | array() |
|
protected
|
$overwrite | |
|
protected
string
|
$overwriteFilename | '' |
|
protected
boolean
|
$lowercase | true |
|
protected
string
|
$targetFilename | '' |
|
protected
boolean
|
$extractArchives | false |
|
protected
array
|
$validExtensions | array() |
|
protected
array
|
$badExtensions | array('php', 'php3', 'phtml', 'exe', 'cfm', 'shtml', 'asp', 'pl', 'cgi', 'sh') |
|
protected
array
|
$errors | array() |
|
protected static
string
|
$unzipCommand | 'unzip -j -qq -n /src/ -x __MACOSX .* -d /dst/' |
|
protected
array
|
$errorInfo | array(
UPLOAD_ERR_OK => 'Successful Upload',
UPLOAD_ERR_INI_SIZE => 'The uploaded file exceeds the upload_max_filesize directive in php.ini.',
UPLOAD_ERR_FORM_SIZE => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.',
UPLOAD_ERR_PARTIAL => 'The uploaded file was only partially uploaded.',
UPLOAD_ERR_NO_FILE => 'No file was uploaded.',
UPLOAD_ERR_NO_TMP_DIR => 'Missing a temporary folder.',
UPLOAD_ERR_CANT_WRITE => 'Failed to write file to disk.',
UPLOAD_ERR_EXTENSION => 'File upload stopped by extension.'
) |
$changes,
$defaultHookOptions,
$fuel,
$hookMethodCache,
$localHooks,
$staticHooks,
$trackChanges,
$useFuel
|