<%= notice %>

Title: <%= @upload.title %>

File:
<% if @upload.get_extension == 'jpg' || @upload.get_extension == 'png' %> <%= image_tag @upload.file.to_s if @upload.file != nil %> <% else %> <%= link_to @upload.title, @upload.file.to_s %> <% end %>

File Type: <%= @upload.file.file.content_type %>

Desciption: <%= @upload.description %>

<%= link_to 'Edit', edit_upload_path(@upload) %> | <%= link_to 'Destroy', @upload, method: :delete, data: { confirm: 'Are you sure?' } %> | <%= link_to 'Back', admin_files_path %>