7 <form method="post" id="upload_form" enctype="multipart/form-data" action="controller.pl">
 
   8   [% SET multiple = 'true' %]
 
   9   [% IF SELF.object_type == 'shop_image' %][% multiple = 'false' %][% END %]
 
  10     <div class="file-field input-field col s12">
 
  11       <div class="btn m3 s12">
 
  12         <span>[% 'Filename' | $T8 %]</span>
 
  14           name="uploadfiles[]" type="file" [% IF multiple %]multiple[% END %]
 
  15           id="upload_files" size="45" accept="[% SELF.accept_types %]" capture="camera"
 
  16           onchange="kivi.File.allow_upload_submit();">
 
  18       <div class="file-path-wrapper m9 s12">
 
  19         <input class="file-path validate" type="text">
 
  25        P.escape_js_call("kivi.File.upload_selected_files", SELF.object_id, SELF.object_type, SELF.file_type, SELF.maxsize, SELF.is_global),
 
  26        LxERP.t8("Upload file"),
 
  27        id="upload_selected_button",
 
  30      [% P.M.button_tag("kivi.File.reset_upload_form()", LxERP.t8('Reset'), flat=1) %]
 
  37  <div id="upload_result"></div>