mardi 3 mars 2015

How change attribute "files" (input type=file) in Mozilla

I have problem with my input type=file. I uploaded file using jQuery and now I'm trying to set it in this input, in google chrome there is no problem, but in Mozilla and IE it doesn't work.


Below is a few line of my code:


obj.on('drop', function (e){ var files = e.originalEvent.dataTransfer.files; $('input[type=file]').prop('files',files); }


Aucun commentaire:

Enregistrer un commentaire