/**
  * (non-PHPdoc).
  *
  * @see \Mathielen\ImportEngine\Storage\Provider\StorageProviderInterface::select()
  */
 public function select($id = null)
 {
     if ($id instanceof UploadedFile) {
         if (!$id->isValid()) {
             throw new \InvalidArgumentException('Upload was not successful');
         }
         $newFile = $id->move($this->targetDirectory, $this->generateTargetFilename($id));
         $selection = new StorageSelection(new \SplFileInfo($newFile), $this->targetDirectory . '/' . $newFile->getFilename(), $id->getClientOriginalName());
         return $selection;
     }
     return parent::select($id);
 }