Issue downloading from S3

Hi! I'm having an issue downloading from s3 in the correct format. 4 days ago everything was fine. I was able to download successful but this week, retool downloads all files regardless of extension as a .txt file.

Enginners have tried to trouble shoot but cant seem to get to the buttom of it.

However retool is able to upload documents to s3 successfully and those same documents download back correctly but all documents uploaded through the customer facing website does not seem to download correctly.

We also found that if we just rename the files downloaded from .txt to pdf for example it will open correctly.

I'm wondering if there is a bug with retool preventing it from calling the files extension correctly or is there a transformer script we can write to solve this issue?