FormData problem

FormData problem

Hi,
I'm trying to send uploaded files without form using Ajax. I've a problem with FormData. Here my example:

HTML
  1. <input  type="file" name="file" class="jfilestyle" data-theme="blue" data-input="true" data-buttonText="<i class='fa fa-upload' aria-hidden='true'></i>" >
JQUERY:
  1. var myfile = $(':file').prop('files')[0];
  2. var data = new FormData();
  3. data.append('file',myfile);

  4. var mytest= "test";

  5. $.ajax({
  6.       type:'POST',
  7.       url:'test.php',
  8.       data{
  9.             data:data,
  10.             mytest:mytest      
  11.       },
  12.       processData:false,
  13.       contentType:false,
  14.       success:function(data){
  15.             alert("data.myFile");
  16.       }
  17. });
I can't read the uploaded file in my  "test.php" page? How can i do that? Can you show me an example?

Thank You very Much!

Manuel