bonjour,
je n'arrive pas à uploader mon image
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 <input id="channelLogo" type="file" name="channelLogo">update Logo channel</input> $('#updateLogoBtn').on("click", function (e) { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') } }) e.preventDefault(); $.ajax({ data: { id: $id, channelLogo: $('#channelLogo').val(), '_token': $('input[name=_token]').val() }, url: "logoAsyncUpdate", type: "post", success: function (data, textStatus, xhr) { // } }); });
Partager