MyBB Community Forums
[How To?] Real attachment link and using CDN - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] Real attachment link and using CDN (/thread-225651.html)



Real attachment link and using CDN - noyle - 2019-12-08

Is there a way to use attachment (images or other uploads) real link instead of using attachment.php?aid=xxx?
And how will CDN work if attachments are output by PHP script? Doc says CDN setting can serve uploads/* https://docs.mybb.com/1.8/faq/using-a-cdn-with-mybb/

Second question, how's MyBB community forum done to use a camo server to display in-post attached images?


RE: Real attachment link and using CDN - noyle - 2019-12-12

OK. Seems currently (1.8.21), there's no option for switching attachment to output real links.

And as for CDN, current code will only get following assets using CDN:
  • cache/themes/*
  • images/*
  • jscripts/*
  • uploads/avatars/*
The uploads/* will not be through CDN.