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
Gerelateerde topics
| Topic | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
| Discourse won't delete attachment after period hours | 3 | 542 | 20 oktober 2023 | |
| Uploaded zip file is renamed | 4 | 1280 | 8 november 2017 | |
| How do I change the URL of a file? | 5 | 400 | 26 maart 2025 | |
| How can I migrate files from the old upload scheme (default/XXX) to the new one (default/original/{1,2}X)? | 17 | 3637 | 17 mei 2019 | |
| Uploads not getting orphaned and purged | 9 | 1890 | 19 april 2024 |