Hi, I’m new to Flarum, and I’m creating a forum. I want my users to be able to upload files via the fof/upload extension, but I’ve noticed that as soon as an image is uploaded, it is instantly saved permanently on my server in the flarum/public/assets/files/current-date directory. This happens even if the user DOES NOT use this file in post, so I don’t think any anti-spam extension has any effect.
In fact, it seems very easy to create a bot to mass-upload the same file and overload a server. This means that one person could potentially upload hundreds of gigabytes to my forum in a single day. Is there any fix for this?
I even tested it on this forum to see if anything would prevent me from doing that, and there isn’t. I successfully uploaded about 20 images without any problems. You can even use the same file repeatedly, and it will still save each one internally as a separate image.
I’m not sure if this is the right place to discuss this, but does any fix exist, or did I just discover an exploit?
By the way, you might want to disable your fof/upload extension if this behavior wasn’t intended.
Is this intended behavior, or am I missing something?