I upload a file, but it pop-out " the uploaded file exceeds the upload_max_filesize directive in php.ini". how did I fix it?
Hi @jinjack, in order to change the upload_max_filesize directive, you need to create a file called "php.ini" or ".user.ini" in the root of your site. The content of the file is as follows:
memory_limit = 1024M max_execution_time = 320 max_input_time = 240 post_max_size = 120M max_input_vars = 2000 file_uploads = 6 max_file_uploads = 20 upload_max_filesize = 100M
Please check the memory_limit, in this code is set to 1024M, but if your plan gives you less than 1GB of RAM, you should change it accordingly.
Hope it helps!