In addition to changing your code, you also need to change the setting on the server to accommodate uploading larger file sizes. The settings that need to be changed are in the php.ini file: sudo vi /etc/php/7.0/apache2/php.ini (the path here
In addition to changing your code, you also need to change the setting on the server to accommodate uploading larger file sizes. The settings that need to be changed are in the php.ini file: sudo vi /etc/php/7.0/apache2/php.ini (the path here