2024-02-26, 08:19 PM
1. MyBB's native Attachment system is just uploader, doesn't return upload path on the fly. The new attachment system does that and acts like API though (sort of), but it does some complex activities too; like thumbnail, attachment count, attachment quota etc.
2. It doesn't check Access Control Header; which in your case - it should.
3. If you want to host images in-house; the settings of those should be different than attachment system, like
- it should allow only image files
- it should have the limits (size, dimension etc) separate.
- you may like to auto-resize the image or optimize for maximum storage and fast loading; which is absent in attachment system.
- you may like to add functionality of image expiry / auto deletion.
If you want to learn a bit about what I said; here is a resource:
https://webscodex.medium.com/how-to-uplo...876d2ef37a
It can; however; be implemented using a custom plugin. I am not sure whether I will be able to manage time to build one but I will definitely try.
2. It doesn't check Access Control Header; which in your case - it should.
3. If you want to host images in-house; the settings of those should be different than attachment system, like
- it should allow only image files
- it should have the limits (size, dimension etc) separate.
- you may like to auto-resize the image or optimize for maximum storage and fast loading; which is absent in attachment system.
- you may like to add functionality of image expiry / auto deletion.
If you want to learn a bit about what I said; here is a resource:
https://webscodex.medium.com/how-to-uplo...876d2ef37a
It can; however; be implemented using a custom plugin. I am not sure whether I will be able to manage time to build one but I will definitely try.