Property | Type | Description | |
---|---|---|---|
$CategoryPaths | |||
$Filesystem | |||
$Image | Image |
Method | Description | |
---|---|---|
__construct ( |
Construct a new File manager | |
removeUploadedFile ( string $filepath ) : void | Remove uploaded files from the /media directory | |
renameUploadedFile ( string $filepath, string $newpath ) : void | Renames an uploaded file | |
saveUploadedFile ( $input ) : boolean | Saves the uploaded file to the media directory |
Method | Description | |
---|---|---|
createFile ( File $file, string $serverPath, string $originalName ) : string | Checks for file existence and then creates file. | |
getThumbnailPath ( $currentName ) : string | Change this |
public __construct ( |
||
$Filesystem | ||
$CategoryPaths | ||
$MediaPaths | ||
$Image | ||
$Caption |
public removeUploadedFile ( string $filepath ) : void | ||
$filepath | string | |
return | void |
public saveUploadedFile ( $input ) : boolean | ||
$input | ||
return | boolean |
protected CategoryPaths,Devise\Media\Categories $CategoryPaths | ||
return |
protected Filesystem,Devise\Media\Files $Filesystem | ||
return |