HTML-Code:
GLOBALS['TL_DCA']['tl_member']['fields']['profilepic'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_member']['profilepic'],
'exclude' => true,
'inputType' => 'fineUploader',
'eval' => array('storeFile'=>true, 'useHomeDir' => true, 'mandatory'=>false, 'uploadFolder' => 'files/user/','feEditable'=>true, 'feViewable'=>true, "tl_class" => "w50 wizard", 'feGroup'=>'address', 'extensions' => 'jpg, jpeg, png', 'addToDbafs' => true,),
'sql' => "blob NULL"
);
$GLOBALS['TL_DCA']['tl_member']['fields']['verifypic'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_member']['verifypic'],
'exclude' => true,
'inputType' => 'fineUploader',
'eval' => array('storeFile'=>true, 'useHomeDir' => true,'uploadFolder' => 'files/user/', 'mandatory'=>false, 'feEditable'=>true, 'feViewable'=>true, "tl_class" => "w50 wizard", 'feGroup'=>'address', 'extensions' => 'jpg, jpeg, png', 'addToDbafs' => true,),
'sql' => "blob NULL"
);
$GLOBALS['TL_DCA']['tl_member']['fields']['gallery'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_table']['gallery'],
'exclude' => false,
'inputType' => 'fineUploader',
'eval' => array
(
'storeFile' => true, // Mandatory to store the file on the server
'multiple' => true, // Allow multiple files to be uploaded
'uploadFolder' => 'files/user/', // Upload target directory (can also be a Contao file system UUID)
'useHomeDir' => true, // Upload to the FE member home directory (overrides "uploadFolder", can also be a Contao file system UUID)
'uploaderConfig' => "['debug': true]", // Custom uploader configuration that gets merged with the other params
//'uploaderLimit' => 4, // Maximum files that can be uploaded
'addToDbafs' => true, // Add files to the database assisted file system
'extensions' => 'jpg, jpeg, png', // Allowed extension types
//'maxlength' => 2048000, // Maximum file size (is ignored if you use chunking!)
//'maxWidth' => 800, // Maximum width (applies to images only)
//'maxHeight' => 600, // Maximum height (applies to images only)
'doNotOverwrite' => true, // Do not overwrite files in destination folder
//'uploadButtonLabel' => 'Upload images', // Custom upload button label
'maxConnections' => 3, // Maximum allowable concurrent requests
'feViewable' => true,
'feEditable'=>true,
"tl_class" => "w50 wizard",
// Upload the files directly to the destination folder. If not set, then the files are first uploaded
// to the temporary folder and moved to the destination folder only when the form is submitted
//'directUpload' => true,
// Set a custom thumbnail image size that is generated upon image upload
//'imageSize' => [160, 120, 'center_center'],
// You can also use the default features of fileTree widget such as:
// isGallery, isDownloads
// The "orderField" attribute is not valid (see #9)
),
'sql' => "blob NULL"
);
Lesezeichen