thats happen

thats happen
No description
5 Replies
harshil1712
harshil1712•5mo ago
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
Yves
YvesOP•5mo ago
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
Yves
YvesOP•5mo ago
No description
Yves
YvesOP•5mo ago
I was using Array.from to change the keys from the object thanks very much man now i can sleep
harshil1712
harshil1712•5mo ago
I am gald that I could help 😄
Want results from more Discord servers?
Add your server