I had the same problem and i created a .user.ini file and put it in the directory in which the upload script was located.
I connected my website through ftp Filezilla, also don't forget to make both your ftp service to show hidden files, and your local computer to do so, because .htaccess file was hidden in my local laptop and in my website. It was available in public_html folder, I just downloaded it and added the following codes. I managed that requirement to tick by just going to php settings through my cpanel, click on php selector extensions.