Search code examples
phplaraveluser-interfacesignature

keith-wood Signature not working on production


jQuery UI Signature working on local but not working on live server enter image description here javascript:


    var sig = $('#sig').signature({syncField: '#signature64', syncFormat: 'PNG',svgStyles: true});
       $('#clear').click(function(e) {

           e.preventDefault();

           sig.signature('clear');

           $("#signature64").val('');
       });

HTML code:

     <label class="" for="">Signature:</label>
                                        <br/>
                                        <div id="sig" ></div>
                                        <br/>
                                        <button id="clear" class="btn btn-danger btn-sm">Clear Signature</button>
                                        <textarea  id="signature64" name="signed" style="display: none">

                                        </textarea>

route:

 Route::POST('bene/store/', [App\Http\Controllers\BeneficiaryController::class, 'store'])->name('beneficiary.store');

enter image description here enter image description here everything seems fine but whenever I submit my form got that error

enter image description here

thanks in Advance!!


Solution

  • Increase post max size in php.ini file then this issue will fixed.