"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.

Thanks!

@texnixe, would it be feasible to add a more specific error message like: “most likely the file size exceeds the server’s upload limit” or something like that? Or at least a “Please review the server’s error log for more information.”? As it is, the message isn’t very helpful.

Well, an error message with assumptions doesn’t make much sense, and that point, we simply don’t know.