Reverted code as the max upload size in php.ini hadn't saved on server