74 $GLOBALS[
'LANG']->includeLLFile(
'EXT:lang/locallang_misc.xlf');
85 protected function init() {
89 if (!$this->returnUrl) {
96 if ($this->folderObject->getStorage()->getUid() === 0) {
97 throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException(
'You are not allowed to access folders outside your storages', 1375889834);
101 if (!$this->folderObject) {
102 $title =
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_mod_file_list.xlf:paramError', TRUE);
103 $message =
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_mod_file_list.xlf:targetNoDir', TRUE);
104 throw new \RuntimeException(
$title .
': ' . $message, 1294586843);
108 $this->title = $icon . htmlspecialchars($this->folderObject->getStorage()->getName()) .
': ' . htmlspecialchars($this->folderObject->getIdentifier());
111 $this->doc->setModuleTemplate(
'EXT:backend/Resources/Private/Templates/file_upload.html');
112 $this->doc->backPath =
$GLOBALS[
'BACK_PATH'];
113 $this->doc->form =
'<form action="tce_file.php" method="post" name="editform" enctype="' .
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'form_enctype'] .
'">';
123 $this->content = $this->doc->startPage(
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_core.xlf:file_upload.php.pagetitle'));
125 $pageContent = $this->doc->header(
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_core.xlf:file_upload.php.pagetitle')) . $this->doc->section(
'', $form);
127 $docHeaderButtons = array(
131 $markerArray = array(
132 'CSH' => $docHeaderButtons[
'csh'],
133 'FUNC_MENU' =>
BackendUtility::getFuncMenu($this->
id,
'SET[function]', $this->MOD_SETTINGS[
'function'], $this->MOD_MENU[
'function']),
134 'CONTENT' => $pageContent,
135 'PATH' => $this->title
138 if ($this->returnUrl) {
141 $this->content .= $this->doc->moduleBody(array(), $docHeaderButtons, $markerArray);
142 $this->content .= $this->doc->endPage();
143 $this->content = $this->doc->insertStylesAndJS($this->content);
155 <div id="c-override"> 156 <p><label for="overwriteExistingFiles"><input type="checkbox" class="checkbox" name="overwriteExistingFiles" id="overwriteExistingFiles" value="1" /> ' .
$GLOBALS[
'LANG']->getLL(
'overwriteExistingFiles', 1) .
'</label></p> 158 <p>' .
$GLOBALS[
'LANG']->getLL(
'uploadMultipleFilesInfo', TRUE) .
'</p> 167 <input type="file" multiple="true" name="upload_1[]" /> 168 <input type="hidden" name="file[upload][1][target]" value="' . htmlspecialchars($this->folderObject->getCombinedIdentifier()) .
'" /> 169 <input type="hidden" name="file[upload][1][data]" value="1" /><br /> 177 <input type="hidden" name="redirect" value="' . $this->returnUrl .
'" /><br /> 179 <input type="submit" value="' .
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_core.xlf:file_upload.php.submit', TRUE) .
'" />
static cshItem($table, $field, $BACK_PATH, $wrap='', $onlyIconMode=FALSE, $styleAttrib='')
static getIndpEnv($getEnvName)
static makeInstance($className)
static getModuleUrl($moduleName, $urlParameters=array(), $backPathOverride=FALSE, $returnAbsoluteUrl=FALSE)
static getSpriteIcon($iconName, array $options=array(), array $overlays=array())
static getFuncMenu($mainParams, $elementName, $currentValue, $menuItems, $script='', $addparams='')
static sanitizeLocalUrl($url='')
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
static linkThisUrl($url, array $getParams=array())