메소드 | 설명 | |
---|---|---|
createFile ( |
Creates the uploaded file of a newly created entity. | |
deleteFile ( |
Deletes a specific file from an existing entity. | |
renderFile ( |
Renders (outputs) a file of an entity. This includes setting headers like the file size, mimetype and name, too. | |
updateFile ( |
Updates the uploaded file of an updated entity. |
public createFile ( |
||
$request | the HTTP request containing the file data | |
$entity | the just created entity | |
$entityName | string | the name of the entity as this class here is not aware of it |
$field | string | the file field |
리턴 | void |
public renderFile ( |
||
$entity | the entity to render the file from | |
$entityName | string | the name of the entity as this class here is not aware of it |
$field | string | the field of the entity containing the file to be rendered |
리턴 | the HTTP response, likely to be a streamed one |
public updateFile ( |
||
$request | the HTTP request containing the file data | |
$entity | the updated entity | |
$entityName | string | the name of the entity as this class here is not aware of it |
$field | string | the file field |
리턴 | void |