Yeah here’s one posted 5 days ago. Same issue adding a txt extension to all files. I’ll try on PC in a moment.
I checked both of those scripts and they download normally for me on Firefox (mobile too), maybe it’s your browser.
So I went back to my PC and Mac and it looks like this is actually an issue that only occurs on Safari. Up until a couple weeks ago I never had issue with that browser. Looks like there is a possible answer on stack exchange:
“AFAIK the Apache server software comes with a preset of extension->MIME-type assignments. If a file with an unknown extension (like .dmg) is served with the MIME-type text as a fallback, Safari adds a .txt extension. This behavior is arguably correct. The server tells Safari it is serving a text-file, and a text file needs a .txt extension on Mac to be opened with a text editor. So Safari adds one. Other browsers ignore the server, which is a short term benefit for the user, but in the long run a) makes the server admin not notice the mistake and b) prevents the server admin to use this feature whenever he intentionally wants to (as opposed to unintentionally doesn’t care as usually).”
Been noticing a lot of slowness on the site in general recently. Is that due to increased server load or the update somehow? Let me know if I can provide any sort of data to try and diagnose.
I believe the broken attachment issue has been fixed.
This was caused by the older attachment urls being formatted in a different way than later attachments. Not sure when or why Discourse made that update. It could be due to moving object storage providers in the past as well. Regardless, it should be a one time issue.
Regarding site slowdowns @g90ak, this is due to needing to rebake all the posts after migrating storage providers. Then we started running into issues with broken attachments that only occurred after rebaking, so I’ve been running rebakes multiple times to verify if things are actually fixed. Unfortunately rebaking and then the tasks that get kicked off after a rebake hog 100% of the server CPU. These tasks take about a few days to complete. Afterwards, things should return to normal.
My old scripts seem to be working again, thank you for fixing the issue.