Question
send big data from javascript
we create StringBase64 data at javascript.
in javascript code we want to set StringBase64 data to pega property from javascript.
when I used below code I have get this error message "Transport error: 413 Error: Request Entity Too Large"
var oSafeURL =null;
oSafeURL = new SafeURL("TFKB-FW-AydosFW-Work.AddDocument");
oSafeURL.put("Path" ,"path");
oSafeURL.put("StringInBase64" ,arrayBuffer);
httpRequestAsynch(oSafeURL,"",50,100 ); OR httpRequestAsynch('GET',oSafeURL,"",50,100 ); OR httpRequestAsynch('POST',oSafeURL,"",50,100 );
***Moderator Edit: Vidyaranjan| Updated Categories***
I *believe* that this is probably complaining about the size of the URL- but can you check
Can you run a 'Fiddler' against this request - and see what the URL and the POST BODY look like ?
Also: what Web Server are you using here ? The error is a server-side error but the value of 'post_max_size' can probably be configured to allow larger requests (I'm not saying that is the *right* way of dealing with this; but if (for instance) you are only just over the limit, you could perhaps consider increasing it).