Title: plugin block my way
Last modified: August 20, 2016

---

# plugin block my way

 *  Resolved [ppserver](https://wordpress.org/support/users/ppserver/)
 * (@ppserver)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-block-my-way/)
 * hi author.
    this plugin is amazing and works great but after i active it i cant
   upload another file formats anymore. for example when i try to upload a PDF file
   my uploading process bar still working for ever and i must refresh the page to
   see my new uploaded file. i cant remove plugin because i really need it and i’m
   search for a way to except other formats in plugin base. can you help me please?
   i just want a simple exception in plugin file to not make tribulation with another
   file formats. regards
 * [http://wordpress.org/extend/plugins/dynamic-image-resizer/](http://wordpress.org/extend/plugins/dynamic-image-resizer/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [ppserver](https://wordpress.org/support/users/ppserver/)
 * (@ppserver)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-block-my-way/#post-3256286)
 * problem solved!
 * at the line 60:
 * add_filter(‘wp_generate_attachment_metadata’,’dynimg_generate_metadata’);
 * we should remove ‘wp_generate_attachment_metadata’ because generated attachment
   doesn’t need WP trick. actually we should just do WP trick on our images not 
   all attachments.
 *  [JochenT](https://wordpress.org/support/users/jochent/)
 * (@jochent)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-block-my-way/#post-3256355)
 * Your error analysis is wrong. I’ve uploaded hundreds of PDF with this plugin 
   active and there is no additional attachment meta data. You may check this directly
   in your database using the following SQL statement:
 *     ```
       SELECT * FROM wp_postmeta
         WHERE meta_key = '_wp_attachment_metadata'
           AND meta_value LIKE '%.pdf%'
       ```
   
 * (replace table prefix `wp_` with the prefix you use)
    The result should be empty.
   You may change pdf to jpg or png and you should get a lot of rows as result.
 * The global variable `$dynimg_image_sizes` which is used in function `dynimg_generate_metadata()`
   should be empty if it is not an image. This behaviour relies on WP not the plugin.
 * Thus, if you do find any rows with PDF files in the database this is due to an
   error / misconfiguration somewhere else.
 * You may also see at function wp_generate_attachment_metadata() in file wp-admin/
   includes/image.php, which applies both filter hooks ‘intermediate_image_sizes_advanced’
   and ‘wp_generate_attachment_metadata’.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘plugin block my way’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dynamic-image-resizer.svg)
 * [Dynamic Image Resizer](https://wordpress.org/plugins/dynamic-image-resizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamic-image-resizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamic-image-resizer/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamic-image-resizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamic-image-resizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamic-image-resizer/reviews/)

## Tags

 * [block](https://wordpress.org/support/topic-tag/block/)
 * [file-formats](https://wordpress.org/support/topic-tag/file-formats/)

 * 2 replies
 * 2 participants
 * Last reply from: [JochenT](https://wordpress.org/support/users/jochent/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-block-my-way/#post-3256355)
 * Status: resolved