Upload

<% if !CurrentUser.user.upload_limit.limited? %> <%= embed_wiki("help:upload_notice", id: "upload-guide-notice") %> <% unless CurrentUser.can_upload_free? %>

Upload Limit: <%= render "users/upload_limit", user: CurrentUser.user %>

<% end %> <%= render "image" %> <%= render "related_posts", source: @source %> <%= render "sources/info" %> <%= edit_form_for(@upload, html: { id: "form" }) do |f| %> <%= f.input :md5_confirmation, as: :hidden %> <%= f.input :referer_url, as: :hidden, input_html: { value: params[:ref] } %> <% if CurrentUser.can_upload_free? %> <%= f.input :as_pending, as: :boolean, label: "Upload for approval", input_html: { checked: params[:as_pending].present? } %> <% end %> <%= f.input :file, as: :file, size: 50, wrapper_html: { class: "fallback" } %>
Click or drag and drop to upload a file
Max size: <%= number_to_human_size(Danbooru.config.max_file_size) %>. Supported filetypes: jpg, png, gif, swf, mp4, webm.
<%= f.input :source, as: :string, placeholder: "Enter the URL to upload here", input_html: { size: 50, value: params[:url] } %> <%= tag.button "Similar", id: "similar-button" %>
<%= f.input :rating, collection: [["Explicit", "e"], ["Questionable", "q"], ["Safe", "s"]], as: :radio_buttons, selected: params[:rating] %> <%= f.input :parent_id, label: "Parent ID", as: :string, input_html: { value: params[:parent_id] } %>
Commentary show »
<%= f.label :tag_string, "Tags" %>
<%= f.input :tag_string, label: false, input_html: { size: "60x5", "data-autocomplete": "tag-edit", "data-shortcut": "e", spellcheck: false, value: params[:tag_string] } %> <%= render "related_tags/buttons" %>
<%= f.submit "Submit", id: "submit-button", data: { disable_with: false } %> <%= render "related_tags/container" %> <% end %> <% else %>

You <%= CurrentUser.user.upload_limit.limit_reason %>

<% end %>
<%= render "uploads/secondary_links" %>