  <div class="row"
       tal:define="%(id)s_error_file errors/%(id)s_file|nothing;"> 

    <div class="label">
      <span i18n:translate="%(id)s_upload_contents">%(label)s upload </span>
	<div id="%(id)s_upload_help" 
	     i18n:translate="%(id)s_upload_help"
	  class="help" 
	  style="visibility:hidden">
	  This feature can be used if you already have the document 
	  in an existing file on your computer and want to add the contents
	  of it to this document.
	</div>
    </div>
    
    <div class="field"
	 tal:attributes="class python:test(%(id)s_error_file, 'field error', 'field')">
      <div tal:replace="%(id)s_error_file" />
	<input type="file" 
	       name="%(id)s_file" 
	       size="30" 
	       tabindex="" 
	       tal:attributes="tabindex tabindex/next;" 
		  />
      

      <div tal:omit-tag="" tal:define="unit python: here.getUnit(%(id)r)"
           tal:condition="python: hasattr(unit, 'isUnit')">      
      <div tal:condition="python: here.isBinary(%(id)r) == 1"
	tal:define="size unit/get_size;
	            icon unit/getIcon;"
	>
	<a href="" tal:attributes="href string: ${here/absolute_url}/%(id)s/;">
	  <img src="" tal:attributes="src string:${here/portal_url}/${icon}"/>Download %(label)s
	</a> (<span tal:content="python: str(size /1024) + 'Kb'">0Kb</span>)

	<a href="" tal:attributes="href string: ${here/absolute_url}/%(id)s/external_edit;"
		   tal:define="edit here/edit.gif">
	<img tal:replace="structure python:edit.tag(title='Edit with External Editor')" />
	Edit</a>
      </div>
      </div>

      </div>
    </div>
