<%- @title = "Upload #{h @file_name}" @hide_navigation = false @referring_page ||= request.env["HTTP_REFERER"] -%> <%= error_messages_for 'file' %> <% form_tag({ :controller => 'file', :web => @web_name, :action => 'file' }, { 'multipart' => true , 'accept-charset' => 'utf-8' }) do %>
<%= hidden_field 'file', 'file_name' %>

Please note that the file you are uploading will be named <%= h @file_name %> on the wiki - regardless of how it is named on your computer. To change the wiki name of the file, please go <%= link_to("back", @referring_page) %> and edit the wiki page that refers to the file.

<%= text_field "file", "description", "size" => 40 %>
as <%= text_field_tag :author, @author, :onfocus => "this.value == 'AnonymousCoward' ? this.value = '' : true;", :onblur => "this.value == '' ? this.value = 'AnonymousCoward' : true" %>
<%- end -%>