I am using AWS s3 to store attachments , i am able to upload the attachment but i am not able to download the attachment,
Failed - Unknown server error. Please try again, or contact the server administrator

Seeing following error message in the log:
#3 {main}
thrown in phar://D:/home/site/wwwroot/include/plugins/storage-s3.phar/storage.php on line 223
[01-Feb-2022 07:52:41 UTC] PHP Fatal error: Uncaught Error: Call to undefined method AttachmentFile::getAttrs() in phar://D:/home/site/wwwroot/include/plugins/storage-s3.phar/storage.php:223
Stack trace:
#0 phar://D:/home/site/wwwroot/include/plugins/storage-s3.phar/storage.php(144): S3StorageBackend->getKey()
#1 D:\home\site\wwwroot\include\class.file.php(272): S3StorageBackend->sendRedirectUrl('attachment')
#2 D:\home\site\wwwroot\file.php(68): AttachmentFile->download(NULL, 'attachment', '1643760000')
#3 {main}

thrown in phar://D:/home/site/wwwroot/include/plugins/storage-s3.phar/storage.php on line 223
[01-Feb-2022 07:52:54 UTC] PHP Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\home\site\wwwroot\include\pear\Mail\mail.php on line 156

Write a Reply...