FileUploader
class FileUploader
This class implements a file uploader service.
This service is defined in src/EUREKA/G6KBundle/Resources/config/services.yml as follows:
g6k.file_uploader: class: EUREKA\G6KBundle\Services\FileUploader arguments: ['%g6k_upload_directory%']
Properties
private string | $targetDir |
Methods
void
__construct(string $targetDir)
Constructor of class FileUploader
string
upload(UploadedFile $file)
Moves the file to the upload directory with a temporary file name.
Details
at line 61
void
__construct(string $targetDir)
Constructor of class FileUploader
at line 73
string
upload(UploadedFile $file)
Moves the file to the upload directory with a temporary file name.