add files (images) to formData in jQuery (ajax request+ django)

Job ID: 32514775

Budget: $10 – $30 USD

this line will NOT work
$('input[type=file]')[0].files[0]
I am using a jquery plugin where files (images) are attached in the form differently. I trried every possible way with not success. I am using Django (python frame work) for backend where I got request.FILES always empty
Related categories: JavaScript Django jQuery