Oh. Ok. So the three lines of rails code do what you want. It doesn’t change what you see in posts, but if you click the file it saves with the “better-name.pdf”.
pfaffman
(Jay Pfaffman)
10
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Discourse won't delete attachment after period hours | 3 | 490 | October 20, 2023 | |
| Uploaded zip file is renamed | 5 | 1179 | November 8, 2017 | |
| How do I change the URL of a file? | 6 | 170 | March 26, 2025 | |
| How can I migrate files from the old upload scheme (default/XXX) to the new one (default/original/{1,2}X)? | 19 | 3256 | September 29, 2022 | |
| Uploads not getting orphaned and purged | 9 | 1606 | April 19, 2024 |