mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-05 13:43:36 +00:00
Expand API for attachments.
This commit is contained in:
@@ -61,6 +61,16 @@ interface AttachmentHelperInterface
|
||||
*/
|
||||
public function getMessages(): MessageBag;
|
||||
|
||||
/**
|
||||
* Uploads a file as a string.
|
||||
*
|
||||
* @param Attachment $attachment
|
||||
* @param string $content
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function saveAttachmentFromApi(Attachment $attachment, string $content): bool;
|
||||
|
||||
/**
|
||||
* @param Model $model
|
||||
* @param null|array $files
|
||||
|
||||
Reference in New Issue
Block a user