first commit
This commit is contained in:
14
src/Service/UploadSamename.php
Normal file
14
src/Service/UploadSamename.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Service;
|
||||
|
||||
use Oneup\UploaderBundle\Uploader\File\FileInterface;
|
||||
use Oneup\UploaderBundle\Uploader\Naming\NamerInterface;
|
||||
|
||||
class UploadSamename implements NamerInterface
|
||||
{
|
||||
public function name(FileInterface $file)
|
||||
{
|
||||
return $file->getClientOriginalName();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user