메소드 |
설명 |
|
__construct ( array $attributes = [] ) |
Create a new CabinetUpload instance. |
|
children ( ) : Illuminate\Database\Eloquent\Relations\HasMany |
Get children uploads |
|
cleanPath ( $path ) |
|
|
generateThumbnails ( $folder, $file ) |
|
|
getBasename ( $file ) |
|
|
getUploadFolder ( $date = null ) : string |
Get upload path with date folders |
|
process ( Symfony\Component\HttpFoundation\File\UploadedFile $file ) |
|
|
resolveFileName ( string $folder, Symfony\Component\HttpFoundation\File\UploadedFile $file, boolean $enableObfuscation = true ) : array |
Resolve whether the file exists and if it already does, change the file name. |
|
upload ( Symfony\Component\HttpFoundation\File\UploadedFile &$file ) : array |
Upload a file. |
|
user ( ) : User |
Get the uploads owner. |
|
verifyImageType ( Symfony\Component\HttpFoundation\File\UploadedFile $file ) : boolean |
Checks the upload vs the upload types in the config. |
|
verifyUploadType ( Symfony\Component\HttpFoundation\File\UploadedFile $file ) |
Checks the upload vs the upload types in the config. |
|