| @@ 414-419 (lines=6) @@ | ||
| 411 | if ($this->getRequest()->isPost()) { |
|
| 412 | $data = $this->getRequest()->getFiles()->toArray(); |
|
| 413 | ||
| 414 | if (empty($data)) { |
|
| 415 | $data = $this->getRequest()->getPost()->toArray(); |
|
| 416 | $key = key($data); |
|
| 417 | $uploadImage = array('name' => $key.'.png', 'error' => 0, 'base64' => $data[$key]); |
|
| 418 | $data = array($key => $uploadImage); |
|
| 419 | } |
|
| 420 | $uploadFile = $this->getGameService()->uploadFileToPost( |
|
| 421 | $data, |
|
| 422 | $this->game, |
|
| @@ 50-55 (lines=6) @@ | ||
| 47 | ||
| 48 | $data = $this->getRequest()->getFiles()->toArray(); |
|
| 49 | ||
| 50 | if (empty($data)) { |
|
| 51 | $data = $this->getRequest()->getPost()->toArray(); |
|
| 52 | $key = key($data); |
|
| 53 | $uploadImage = array('name' => $key.'.png', 'error' => 0, 'base64' => $data[$key]); |
|
| 54 | $data = array($key => $uploadImage); |
|
| 55 | } |
|
| 56 | $path = $this->getGameService()->getGameUserPath($this->game, $this->user); |
|
| 57 | $media_url = '/'.$this->getGameService()->getGameUserMediaUrl($this->game, $this->user); |
|
| 58 | $uploadFile = $this->getGameService()->uploadFile( |
|