jQuery form dialog upload
Par PlaceOweb le dimanche, mai 1 2016, 19:03 - Javascript - Lien permanent
In short, for upload form with ajax, can be do with :
- any form (in a jQuery-ui Dialog or not)
- FormData ( a set of key/value pairs representing form fields and their values )
And the tips for jquery ajax call, is to define jquery with this two options (contentType, processData) set to false :
$.ajax({ url: $url, type: 'POST', data: formData, processData: false, contentType: false,
Ressources :