Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct () | |
processFileAttributes ($fileAttributes) | |
![]() | |
__construct ( $fileId, Mime $fileMime=null) | |
save ($destinationFolder, $newFileName=null) | |
getFileExtension () | |
addValidateCallback ($callbackName, $callbackObject, $callbackMethod) | |
removeValidateCallback ($callbackName) | |
correctFileNameCase ($fileName) | |
checkMimeType ($validTypes=[]) | |
getUploadedFileName () | |
setAllowCreateFolders ($flag) | |
setAllowRenameFiles ($flag) | |
setFilesDispersion ($flag) | |
setFilenamesCaseSensitivity ($flag) | |
setAllowedExtensions ($extensions=[]) | |
checkAllowedExtension ($extension) | |
Additional Inherited Members | |
![]() | |
static | getCorrectFileName ($fileName) |
static | getNewFileName ($destinationFile) |
static | getDispretionPath ($fileName) |
static | getDispersionPath ($fileName) |
![]() | |
const | SINGLE_STYLE = 0 |
const | MULTIPLE_STYLE = 1 |
const | TMP_NAME_EMPTY = 666 |
const | MAX_IMAGE_WIDTH = 4096 |
const | MAX_IMAGE_HEIGHT = 2160 |
![]() | |
_afterSave ($result) | |
chmod ($file) | |
_moveFile ($tmpPath, $destPath) | |
_validateFile () | |
![]() | |
static | _addDirSeparator ($dir) |
![]() | |
$_file | |
$_fileMimeType | |
$_uploadType | |
$_uploadedFileName | |
$_uploadedFileDir | |
$_allowCreateFolders = true | |
$_allowRenameFiles = false | |
$_enableFilesDispersion = false | |
$_caseInsensitiveFilenames = true | |
$_dispretionPath = null | |
$_fileExists = false | |
$_allowedExtensions = null | |
$_validateCallbacks = [] | |
$_result | |
Class Uploader specific to uploading images using services
Definition at line 12 of file Uploader.php.
__construct | ( | ) |
Avoid running the default constructor specific to FILE upload
Definition at line 17 of file Uploader.php.
processFileAttributes | ( | $fileAttributes | ) |
Explicitly set the file attributes instead of setting it via constructor
array | $fileAttributes |
Definition at line 28 of file Uploader.php.