TYPO3 CMS  TYPO3_6-2
FileuploadElement.php
Go to the documentation of this file.
1 <?php
3 
23 
29  protected $allowedAttributes = array(
30  'accesskey' => '',
31  'alt' => '',
32  'class' => '',
33  'dir' => '',
34  'disabled' => '',
35  'id' => '',
36  'lang' => '',
37  'name' => '',
38  'size' => '',
39  'style' => '',
40  'tabindex' => '',
41  'title' => '',
42  'type' => 'file'
43  );
44 
50  protected $mandatoryAttributes = array(
51  'name',
52  'id'
53  );
54 
60  public function getData() {
61  $uploadData = $this->requestHandler->get($this->name);
62  return $uploadData['originalFilename'];
63  }
64 
70  public function getType() {
71  $uploadData = $this->requestHandler->get($this->name);
72  return $uploadData['type'];
73  }
74 
80  public function getSize() {
81  $uploadData = $this->requestHandler->get($this->name);
82  return $uploadData['size'];
83  }
84 
85 }