in my react app i am trying to download an image from an S3 URL using following code.
<a href={ele.payment_receipt} download target="_blank" class="text-link-3 fw-3 ">
<i class="icon-download mr-2"></i>Download</a>
where ele.payment_receipt is the link of file. but when i click on the link it opens it new tab instead of downloading it. I have tried online solutions but all online solutions tell the same method to download can anyone tell me what i am doing wrong here? thanks in advance
EDIT URL of the image is the SignedUrl of an s3 bucket image which expires after 60 seconds.