php - "413 Request Entity Too Large" for AJAX POST request but not for normal file upload -


my environment shared hosting package 1und1 (1and1). locally on laptop, works fine.

i'm sending quite large ajax request server (~1.2mb) worked fine long time now. however, few days ago stopped working , keep getting following response:

413 request entity large

the requested resource [my request url] not allow request data post requests, or amount of data provided in request exceeds capacity limit.

when lower size of post parameter (a long json-string), works expected. limit somewhere around 1mb (determined trial , error).

i've found lot of suggestions cause be. e.g. following php config values. however, more liberal ones on local machine , cannot see limit here:

  • max_input_time = -1
  • max_execution_time = 50000
  • upload_max_filesize = 64m
  • post_max_size = 64m
  • memory_limit = 256m

then, config value appears in solutions, apache config limitrequestbody. problem here is: afaik don't have acccess changing on 1and1 shared hosting - , cannot find way view apache error log...

i thought limitrequestbody must cause.

but why can upload files via normal post html file form (tested 4mb file) on same server (using symfony 2 form builder filetype object seems translate standard html file upload form)? far understand limitrequestbody (and if applicable secrequestbodynofileslimit) value, should cause same error here, if cause, right?

so has idea debug error further? or has solution question above? or @ least ideas how workaround this?

ps: sslrenegbuffersize should not relevant when accessing webpage without https, right?

413 errors occur when request body larger server configured allow, , there can if server not under control. here’s idea:

ask hosting company set limitrequestbody directive in either httpd.conf file or local .htaccess file higher. more info


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -