Before uploading, please read the <%= link_to "how to upload guide", wiki_page_path("howto:upload") %>. It explains how to tag and what ratings are.

<% form_for(@upload, :html => {:multipart => true}) do |f| %> <% if params[:url] %>
<%= image_tag(params[:url], :title => "Preview") %>

<% if @post %>

This post was probably already uploaded (<%= link_to "post ##{@post.id}", posts_path(@post), :target => "_blank" %>).

<% end %> <% end %>
Upload

<%= f.label :file %> <%= f.file_field :file, :size => 50 %>

<%= f.label :source, nil, :title => "You can enter a URL to have #{Danbooru.config.app_name} automatically download and process it" %> <%= f.text_field :source, :size => 50, :value => params[:url] %>

<%= f.label :tag_string, "Tags" %> <%= f.text_area :tag_string, :size => "60x4" %>

<%= f.label :rating_e, "Explicit", :title => "Hardcore porn, visible genitals, gore" %> <%= f.radio_button :rating, :e %> <%= f.label :rating_q, "Questionable", :title => "Nudity, anything erotic" %> <%= f.radio_button :rating, :q %> <%= f.label :rating_s, "Safe", :title => "Everything else" %> <%= f.radio_button :rating, :s %>

<%= submit_tag "Submit" %>

<% end %> <% content_for(:page_title) do %> / Upload <% end %> <%= render :partial => "posts/common_secondary_nav_links" %>