Puis-je ajouter un tableau à 'formdata' en javascript?

Je suis en utilisant FormData de téléchargement de fichiers. Je tiens également à envoyer une série d'autres données.

Lorsque j'envoie juste une image, il fonctionne très bien. Quand j'ai ajouter du texte à la formdata, il fonctionne très bien. Lorsque je tente de joindre le "tags" tableau ci-dessous, tout le reste fonctionne bien, mais aucun tableau n'est envoyé.

Les problèmes connus avec FormData et en ajoutant des tableaux?

Instancier formData:

formdata = new FormData();

Le tableau, j'créer. Console.journal montre que tout fonctionne bien.

        //Get the tags
        tags = new Array();
        $('.tag-form').each(function(i){
            article = $(this).find('input[name="article"]').val();
            gender = $(this).find('input[name="gender"]').val();
            brand = $(this).find('input[name="brand"]').val();
            this_tag = new Array();
            this_tag.article = article;
            this_tag.gender = gender;
            this_tag.brand = brand;
            tags.push(this_tag);    
            console.log('This is tags array: ');
            console.log(tags);
        });
        formdata.append('tags', tags);
        console.log('This is formdata: ');
        console.log(formdata);

Comment je l'envoyer:

        //Send to server
        $.ajax({
            url: "../../build/ajaxes/upload-photo.php",
            type: "POST",
            data: formdata,
            processData: false,
            contentType: false,
            success: function (response) {
                console.log(response);
                $.fancybox.close();
            }
        });

source d'informationauteur Don P