5 Replies
When I was creating this demo [https://github.com/harshil1712/nextjs-r2-demo/blob/main/app/api/download/route.ts], I learned that the S3 SDK will generate a Pre-signed URL for wrong file-name and bucket. When accessing this URL, is when I get the error. So I would recommend checking if the values passed are correct or not
I found the problem, in your code I saw that you took the file and didn't make any changes to send it, in mine, I made a change in this function, and in this process the file's binary remained in the original file object and not in the my copy, I managed to correct it by sending it directly, thank you very much man
I was using Array.from to change the keys from the object
thanks very much man
now i can sleep
I am gald that I could help 😄