Skip to content

Commit e9491ec

Browse files
authored
Merge pull request #8424 from nextcloud/backport/8156/stable34
[stable34] fix: broken upload of attachment via api
2 parents 8ed6725 + fca2bf2 commit e9491ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/Controller/AttachmentApiController.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function display(int $cardId, int $attachmentId, string $type = 'deck_fil
4646
#[NoAdminRequired]
4747
#[CORS]
4848
#[NoCSRFRequired]
49-
public function create(int $cardId, string $type, string $data): DataResponse {
49+
public function create(int $cardId, string $type, ?string $data): DataResponse {
5050
$attachment = $this->attachmentService->create($cardId, $type, $data);
5151
return new DataResponse($attachment, HTTP::STATUS_OK);
5252
}

0 commit comments

Comments
 (0)