2

I'm doing a simple POST via a form to another PHP page.

In Chrome and Safari, the content appears to always be trimmed down to 524kb, though it works in Firefox.

It's too low to be any of my PHP limits, which are all in the MBs. No LimitRequestBody set in Apache.

I would think that one browser working and two not rules out some kind of firewall rule.

Any other ideas on what to check?

Simple form, value gets filled in by angular. I can verify it is there in its full length on submission:

<form method="POST" action="/forcedownload/index.php">
    <input ng-hide="true" type="text"   name="options[filename]" value="{{download.options.filename}}" />
    <input ng-hide="true" type="text"   name="options[filetype]" value="{{download.options.filetype}}" />
    <input ng-hide="true" type="text"   name="data"              value="{{download.data}}" />
    <input class="btn btn-info" type="submit" ng-click="checkStringLength(download.data,result)" value="Download as CSV" ng-hide="!showPart" />
</form>

Thanks

dmgig
  • 4,400
  • 5
  • 36
  • 47
  • 1
    Need code. Maybe you are doing something wrong and Firefox is "fixing" it. – AbraCadaver Sep 30 '14 at 15:44
  • don't forget the webserver as well. – Marc B Sep 30 '14 at 15:47
  • See http://stackoverflow.com/a/2364875/3367343. Also, out of curiousity, what type of data are you posting? – Travis Hohl Sep 30 '14 at 15:51
  • It's JSON data. Reviewing link now, thx – dmgig Sep 30 '14 at 15:51
  • I def saw that post. It is far too low to by any of those PHP limits, I've checked those. Its one field, so can't be input_vars. – dmgig Sep 30 '14 at 15:53
  • How do you know that "the content appears to always be trimmed down to 524kb," as you mentioned? – Travis Hohl Sep 30 '14 at 16:29
  • @thohl 1st - it fails to be parsed by json_decode, 2nd - echoing the JSON shows it truncated compared to what is in field on submission, 3rd - the data comes from a mysql db, and different criteria produce different strings, but all of the same length. – dmgig Sep 30 '14 at 17:05

1 Answers1

0

As shown in the code, the input type I was using was "text" (and I was hiding it w/ angular), instead of just using a hidden.

text fields always have a default allowed character limit of 524288.

doh.

dmgig
  • 4,400
  • 5
  • 36
  • 47