
| Current Path : /var/www/html/store1/web/core/modules/file/src/Upload/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store1/web/core/modules/file/src/Upload/FormUploadedFile.php |
<?php
namespace Drupal\file\Upload;
use Symfony\Component\HttpFoundation\File\UploadedFile;
/**
* Provides a bridge to Symfony UploadedFile.
*/
class FormUploadedFile implements UploadedFileInterface {
/**
* The wrapped uploaded file.
*
* @var \Symfony\Component\HttpFoundation\File\UploadedFile
*/
protected $uploadedFile;
/**
* Creates a new FormUploadedFile.
*
* @param \Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile
* The wrapped Symfony uploaded file.
*/
public function __construct(UploadedFile $uploadedFile) {
$this->uploadedFile = $uploadedFile;
}
/**
* {@inheritdoc}
*/
public function getClientOriginalName(): string {
return $this->uploadedFile->getClientOriginalName();
}
/**
* {@inheritdoc}
*/
public function isValid(): bool {
return $this->uploadedFile->isValid();
}
/**
* {@inheritdoc}
*/
public function getErrorMessage(): string {
return $this->uploadedFile->getErrorMessage();
}
/**
* {@inheritdoc}
*/
public function getError(): int {
return $this->uploadedFile->getError();
}
/**
* {@inheritdoc}
*/
public function getSize(): int {
return $this->uploadedFile->getSize();
}
/**
* {@inheritdoc}
*/
public function getRealPath() {
return $this->uploadedFile->getRealPath();
}
/**
* {@inheritdoc}
*/
public function getPathname(): string {
return $this->uploadedFile->getPathname();
}
/**
* {@inheritdoc}
*/
public function getFilename(): string {
return $this->uploadedFile->getFilename();
}
}