Ruby upload file with mechanize

I try to automated upload file in youwatch and i blocked here ! When i
execute the code it's like he doesn't send the file because,in the output
i've #>}

I try to find any documentation or advice on internet but nothing very well
only Upload file with ruby mechanize

the CODE:

file ="/mnt/donner/stream/done/skydiving.mp4"
     up.form_with(:method => 'POST') do |form|
          form.file_uploads.first.file_name = file

the HTML:

<form name="file" enctype="multipart/form-data"
method="post" onsubmit="return StartUpload(this);">
      <input type="hidden" name="upload_type" value="file">
      <input type="hidden" name="sess_id" value="pxljha2boc2ylyur">
      <input type="hidden" name="srv_tmp_url"
      <input type="hidden" name="srv_id" value="72">
      <input type="hidden" name="disk_id" value="01">
      <div id="x1">

     <div class="upload_input"><input id="filepc" type="file"
name="file" onchange="this.form.fakeupload.value = this.value;"
                    <div id="files_list"></div></form>