Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/MessagesController.php')
-rwxr-xr-xlib/Controller/MessagesController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Controller/MessagesController.php b/lib/Controller/MessagesController.php
index 2e949df28..d4ca2c4a6 100755
--- a/lib/Controller/MessagesController.php
+++ b/lib/Controller/MessagesController.php
@@ -278,7 +278,7 @@ class MessagesController extends Controller {
* @return AttachmentDownloadResponse
*/
public function downloadAttachment(int $accountId, string $folderId, int $messageId,
- int $attachmentId) {
+ string $attachmentId) {
$mailBox = $this->getFolder($accountId, $folderId);
$attachment = $mailBox->getAttachment($messageId, $attachmentId);
@@ -300,10 +300,10 @@ class MessagesController extends Controller {
* @return JSONResponse
*/
public function saveAttachment(int $accountId, string $folderId, int $messageId,
- int $attachmentId, string $targetPath) {
+ string $attachmentId, string $targetPath) {
$mailBox = $this->getFolder($accountId, $folderId);
- if ($attachmentId === 0) {
+ if ($attachmentId === '0') {
// Save all attachments
/* @var $m IMAPMessage */
$m = $mailBox->getMessage($messageId);