Can't upload attachment files

It says that the file attachment limit size is 512kb and the maximum files is 8. However, it only lets me upload 1 and it also gave an error that the file was more than 512kb even though it was less. It did still attach it though. It also gave an error that I was trying to post the same message twice.

this seems to be still an issue. trying to upload a 1.3MB file to a forum post.
I am using firefox 103.0.2

Maybe it can be fixed changing nginx configuration

and adding

   client_max_body_size 20M;

and modifying this script to edit php.ini and allow upload of larger files

upload_max_filesize = 20M
post_max_size = 20M

I think there was a post that said oF’s hosting costs are extremely high, increasing the upload size might lead to even higher costs, for me, it’s fine to upload it somewhere else and then just embed it here. maybe it is worth it to increase the upload size and see if the error is gone.
I don’t understand why the discourse is complaining about the file size. maybe a bug in the software?

or it’s a browser thing and I am the only one experiencing this issue.