New Photo

Direct upload from the browser<% if @unsigned %>. Unsigned upload using a preset<% end %>

You can also drag and drop an image file into the dashed area.

<%= form_for(@photo, :url => album_photos_path(@album)) do |f| %>
<%= f.label :title, "Title:" %>
<%= f.text_field :title %>
<%= f.label :image, "Image:" %>
<%= link_to("Upload", "#", :class => "upload_button") %> <% if @unsigned %> <%= f.cl_unsigned_image_upload(:image, @preset_name) %> <% else %> <%= f.cl_image_upload(:image, :return_delete_token=>true) %> <% end %>
<%= f.submit "Submit Photo" %> <% if @error %><%= @error %><% end %>
<%= f.hidden_field :bytes %> <%= hidden_field_tag :direct, params[:direct] %> <% end %>
Back to album
<%= cloudinary_js_config %>