If some users encounter this problem, perform the following changes below:
In php.ini, there is the upload_max_filesize and post_max_size directives where both are policies that determine the maximum size of files that are uploaded to the server.
Change the size of policies.
NOTE: This setting also affects file uploading to the server (upload). To send large files, the value must be larger than upload_max_filesize.
In the php.ini directive memory_limit is responsible for controlling maximum memory used by PHP.
The default size is 8MB, but it is advisable to increase, to avoid problems in procedures that require a reasonable amount of memory.