Upload Post

Before uploading, please read the <%= link_to "how to upload guide", wiki_pages_path(:title => "howto:upload") %>.

<%= form_for(@upload, :html => {:multipart => true, :class => "simple_form"}) 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 %>
<%= 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 :rating_q, "Rating" %>
<%= f.radio_button :rating, :e %> <%= f.label :rating_e, "Explicit", :title => "Hardcore porn, visible genitals, gore" %> <%= f.radio_button :rating, :q %> <%= f.label :rating_q, "Questionable", :title => "Nudity, anything erotic" %> <%= f.radio_button :rating, :s %> <%= f.label :rating_s, "Safe", :title => "Everything else" %>
<%= f.label :tag_string, "Tags" %> <%= f.text_area :tag_string, :size => "60x4" %>
<%= submit_tag "Submit" %>
<% end %>
<% content_for(:page_title) do %> / Upload <% end %> <%= render "posts/partials/common/secondary_links" %>