"The file could not be uploaded" with some files

I’m trying to upload some files to my page in localhost, but it’s not working and not giving me any specific error instead of “The file could not be uploaded”

Maybe I can share the console trace :

Could you please check your PHP or server error logs? Does this affect all sorts of files or just particular ones like this starting with an underscore?

Nevermind, yep, checked the php console, it was my post_max_size that was too tiny.