| @@ 737-744 (lines=8) @@ | ||
| 734 | if ($this->isDataArr($value) || $this->isDataUri($value)) { |
|
| 735 | try { |
|
| 736 | $path = $this->dataUpload($value); |
|
| 737 | if ($path !== null) { |
|
| 738 | $parsed[] = $path; |
|
| 739 | ||
| 740 | $this->logger->notice(sprintf( |
|
| 741 | 'File [%s] uploaded succesfully', |
|
| 742 | $path |
|
| 743 | )); |
|
| 744 | } |
|
| 745 | } catch (Exception $e) { |
|
| 746 | $this->logger->warning(sprintf( |
|
| 747 | 'Upload error on data URI: %s', |
|
| @@ 777-784 (lines=8) @@ | ||
| 774 | if (isset($file['error'])) { |
|
| 775 | try { |
|
| 776 | $path = $this->fileUpload($file); |
|
| 777 | if ($path !== null) { |
|
| 778 | $parsed[] = $path; |
|
| 779 | ||
| 780 | $this->logger->notice(sprintf( |
|
| 781 | 'File [%s] uploaded succesfully', |
|
| 782 | $path |
|
| 783 | )); |
|
| 784 | } |
|
| 785 | } catch (Exception $e) { |
|
| 786 | $this->logger->warning(sprintf( |
|
| 787 | 'Upload error on file [%s]: %s', |
|