What is your installation method, Docker? Custom installation?
What version are you using?
What file type are you attempting to upload?
Is the file a valid extension, as per the Modules page?
If you are using a custom installation, then maybe check your php settings: