Upload attachment directly to s3 Bucket

Hi all
Now I have tried GitHub - zerodha/frappe-attachments-s3: A frappe app to upload file attachments in doctypes to s3. GitHub to upload files to the s3 bucket. I have attach image field if I add the image it shows 500 internal server error.Is there any way to solve this error or any other way to achieve I need to upload the image to s3 and I need to download it from s3 bucket?