I have a little problem about upload files in ajax. I sent a form-data to my backend server. The problem is that sometimes, depending on the files my backend doesn't receive anything. Nothing on $_REQUEST
, nothing on $_POST
, $_GET
, $_FILES
or even in file_get_contents(php://input)
.
I have already tried to put my memory_limit
to -1 with post_max_size
to 0 and my upload_max_filesize
to 16M.
I tried with a small picture, an heavy one and one between the two. The small failed. The heavy and the other one are good.
Did any of you have a clue about this problem ?
Edit : I'm using angularJS (angular 1.x.x) on my front-end.