Method | Description | |
---|---|---|
deleteFile ( |
Delete a File from the database and storage. | |
getAttachmentFromStorage ( |
Get an attachment from storage. | |
saveNewFromLink ( string $name, string $link, integer $page_id ) : |
Save a new File attachment from a given link and name. | |
saveNewUpload ( Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile, integer $page_id ) : |
Store a new attachment upon user upload. | |
saveUpdatedUpload ( Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile, |
Store a upload, saving to a file and deleting any existing uploads attached to that file. | |
updateFile ( |
Update the details of a file. | |
updateFileOrderWithinPage ( array $attachmentList, $pageId ) | Updates the file ordering for a listing of attached files. |
Method | Description | |
---|---|---|
deleteFileInStorage ( |
Delete a file from the filesystem it sits on. | |
putFileInStorage ( $attachmentName, Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile ) : string | Store a file in storage with the given filename |
Method | Description | |
---|---|---|
getStorageBasePath ( ) : string | Get the file storage base path, amended for storage type. |
public deleteFile ( |
||
$attachment |
protected deleteFileInStorage ( |
||
$attachment |
public getAttachmentFromStorage ( |
||
$attachment | ||
return | string |
protected putFileInStorage ( $attachmentName, Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile ) : string | ||
$attachmentName | ||
$uploadedFile | Symfony\Component\HttpFoundation\File\UploadedFile | |
return | string |
public saveNewUpload ( Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile, integer $page_id ) : |
||
$uploadedFile | Symfony\Component\HttpFoundation\File\UploadedFile | |
$page_id | integer | |
return |
public saveUpdatedUpload ( Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile, |
||
$uploadedFile | Symfony\Component\HttpFoundation\File\UploadedFile | |
$attachment | ||
return |
public updateFile ( |
||
$attachment | ||
$requestData | ||
return |
public updateFileOrderWithinPage ( array $attachmentList, $pageId ) | ||
$attachmentList | array | |
$pageId |