private function transformToUploadUrl()
 {
     $parts = parse_url($this->request->getUrl());
     if (!isset($parts['path'])) {
         $parts['path'] = '';
     }
     $parts['path'] = '/upload' . $parts['path'];
     $url = Url::fromString(Url::buildUrl($parts));
     $this->request->setUrl($url);
 }