title: Wordpress metadata for an image attachment
body: <p>I need a bit of help to display all the metadata for an image attachment.
  Right now I'm struggling with displaying the <em>mime_type (file type)</em> and <em>filesize</em>.</p>
  
  <p>This is my code so far:</p>
  
  <pre><code>&lt;?php
      $metadata = wp_get_attachment_metadata();
      printf( __( 'Uploaded on: &lt;time class="entry-date" datetime="%1$s"&gt;%2$s&lt;/time&gt;&lt;/span&gt;&lt;br /&gt;
      File URL: %3$s&lt;br /&gt;
      Dimensions: &lt;a href="%3$s" title="Link to full-size image"&gt;%4$s &amp;times; %5$s&lt;/a&gt;&lt;br /&gt;
      Post: &lt;a href="%6$s" title="Return to %7$s" rel="gallery"&gt;%8$s&lt;/a&gt;&lt;br /&gt;
      ', 'mytheme' ),
          esc_attr( get_the_date( 'c' ) ),
          esc_html( get_the_date() ),
          esc_url( wp_get_attachment_url() ),
          $metadata['width'],
          $metadata['height'],
          esc_url( get_permalink( $post-&gt;post_parent ) ),
          esc_attr( strip_tags( get_the_title( $post-&gt;post_parent ) ) ),
          get_the_title( $post-&gt;post_parent )
      );
  ?&gt;
  </code></pre>
  
  <p>Any help is much appreciated.</p>