I am making a basic website where you can sign up and login. Everything is working fine, except for uploading an image file to use as a profile picture. Whenever the file is around 300+ MB and I submit the form, the page keeps loading and eventually gives me
'502: Bad Gateway'
as an error.
I already tried changing the max_file_size
in my php.ini
, but this did not change anything. I also tried increasing the memory_limit
in the php.ini
, but again, this did not fix my problem
EDIT 1:
I am getting the
502: Bad Gateway
error still whenever I use PhpStorm. When I am uploading it my NAS (which has PhpMyAdmin and Apache installed) everything works good from there. I changed the settings in my php.ini, but this did not give me any other result.
EDIT 2: The post was edited and said that it has been answered already, but this is not the case. I am still having the same problem.
EDIT 3: The problem has been solved. It was due to the security that was setup on my NAS. Changing the settings here and there solved the issue.