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 #http://ebox2.youwatch.org/cgi-bin/upload.cgi?upload_id=>}

I try to find any documentation or advice on internet but nothing very well
only Upload file with ruby mechanize
<http://stackoverflow.com/questions/15719021/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
      end.submit

the HTML:

<form name="file" enctype="multipart/form-data"
action="http://ebox2.youwatch.org/cgi-bin/upload.cgi?upload_id="
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"
value="http://ebox2.youwatch.org:8777/tmp">
      <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;"
size="79"></div>
                    <div id="files_list"></div></form>

···

--