/**
  * Customises a file with additional details suitable for rendering in the
  * UploadField.ss template
  *
  * @param File $file
  * @return ViewableData_Customised
  */
 protected function customiseFile(File $file)
 {
     $customizedfile = $file->customise(array('UploadFieldThumbnailURL' => $this->getThumbnailURLForFile($file), 'UploadFieldDeleteLink' => $this->getItemHandler($file->ID)->DeleteLink(), 'UploadFieldEditLink' => $this->getItemHandler($file->ID)->EditLink(), 'UploadField' => $this));
     // render file buttons
     return $customizedfile->customise(array('UploadFieldFileButtons' => (string) $file->renderWith($this->getTemplateFileButtons(), array('IconRemove' => $this->IconRemove(), 'IconEdit' => $this->IconEdit()))));
 }