0

I used VichUploaderBundle in my project symfony 2to upload file , when i use the entityname/new all works fine , but now i want to upload it with ajax to don't reload the page , but it not working , this is my code ajax :

 $ur='http://127.0.0.1/QualiMaker/web/app_dev.php/formateur/new';
                            $.ajax({
                                url: $ur,
                                type: "POST",
                                data: new FormData($('form')[0]),
                                processData: false,
                                contentType: false,
                                cache: false,....

0 Answers0