@@ 29-42 (lines=14) @@ | ||
26 | /** |
|
27 | * @return File[] Array of uploaded files |
|
28 | */ |
|
29 | public function upload() |
|
30 | { |
|
31 | // Try to get upload file with new upload method |
|
32 | $this->realName = $this->handler->name(); |
|
33 | ||
34 | // If upload data exists |
|
35 | if (isset($this->realName) && $this->realName != '') { |
|
36 | // Try to create upload |
|
37 | return $this->createUpload(); |
|
38 | } |
|
39 | ||
40 | // Failed |
|
41 | return false; |
|
42 | } |
|
43 | } |
|
44 |
@@ 118-131 (lines=14) @@ | ||
115 | * Asynchronous uploading method |
|
116 | * @return bool |
|
117 | */ |
|
118 | protected function asyncUploading() |
|
119 | { |
|
120 | // Try to get upload file with new upload method |
|
121 | $this->realName = $this->handler->name(); |
|
122 | ||
123 | // If upload data exists |
|
124 | if (isset($this->realName) && $this->realName != '') { |
|
125 | // Try to create upload |
|
126 | return $this->createUpload(); |
|
127 | } |
|
128 | ||
129 | // Failed |
|
130 | return false; |
|
131 | } |
|
132 | ||
133 | /** |
|
134 | * Synchronous uploading method |