@@ 336-345 (lines=10) @@ | ||
333 | * @param string $fileData The file data, raw. |
|
334 | * @return string |
|
335 | */ |
|
336 | public function dataUpload($fileData) |
|
337 | { |
|
338 | $target = parent::dataUpload($fileData); |
|
339 | ||
340 | if ($this->canApplyEffects('upload')) { |
|
341 | $target = $this->processEffects($target); |
|
342 | } |
|
343 | ||
344 | return $target; |
|
345 | } |
|
346 | ||
347 | /** |
|
348 | * Apply effects to the uploaded file(s). |
|
@@ 354-363 (lines=10) @@ | ||
351 | * @param array $fileData The file data to upload. |
|
352 | * @return string |
|
353 | */ |
|
354 | public function fileUpload(array $fileData) |
|
355 | { |
|
356 | $target = parent::fileUpload($fileData); |
|
357 | ||
358 | if ($this->canApplyEffects('upload')) { |
|
359 | $target = $this->processEffects($target); |
|
360 | } |
|
361 | ||
362 | return $target; |
|
363 | } |
|
364 | ||
365 | /** |
|
366 | * Set an image factory. |