0

I work an a Sylius project.

In the sylius_shop_ajax_cart_add_item form I added a custom input of type hidden where I send a base64 image.

The problem is that if the input is big the POST data is lost.

The ajax call is made via Semantic UI js API.

Here is the request with some small input data. The field to pay attention is image_base64. enter image description here

And here is the expected result on the server, debugger stopped at the first line of the controller. enter image description here

Here is the image of the html with image_base64 input

enter image description here

And here is the debugger right on the first line of the controller.

enter image description here

I use the built in server from Symfony.

My php config for max_post_size is 8mb.

Please someone any suggestion where is the problem?

Keloo
  • 1,368
  • 1
  • 17
  • 36
  • have you tried grabbing the string from the input value field in the html viewer and checking if the image loads? – Danimal Oct 02 '17 at 13:54
  • Yes the image is a valid image, also the idea is that the whole data is lost. – Keloo Oct 02 '17 at 14:27
  • I debugged in the semantic ui js and in the beforeSend hook of the api/ajax call the data is present. Then it somehow gets lost. Kind of black magic – Keloo Oct 02 '17 at 14:30
  • maybe the error is here : https://stackoverflow.com/questions/1752768/is-there-a-max-size-to-the-length-of-a-hidden-input-in-html – Danimal Oct 02 '17 at 14:41
  • @Danimal good point let me check it – Keloo Oct 02 '17 at 14:44

0 Answers0