Im trying to do an ajax call to an url and passing a few parameters.
this is the ajax call:
$.ajax({
url: "../../../lib/pscover.php",
type: "POST",
data: $("#formdatos").serialize(),
dataType: "json",
cache:false, //Para que el formulario no guarde cache
success: function(response) {
and this is the call im serializing:
<input type="hidden" name="PRESUPUESTO" id="presuemail">
<input type="hidden" name="CLIENTE" id="clienteemail">
<!-- <input type="hidden" name="HTML" id="htmlemail"> -->
<input type="hidden" name="PDF" id="pdfemail">
PRESUPUESTO has the value 877
CLIENTE has the value 3
but PDF has an string whose size is 3.5MB.
if i remove PDF field it works perfectly but when i pass it, then is giving me the 404 error.
What can i do?