[wp-hackers] Reject uploaded image

scribu scribu at gmail.com
Fri Jan 23 14:17:29 GMT 2009

I'm trying to do something like this:

A user uploads an image. If the image resolution is lower than 640x480px
(for example), then an error message is sent to the user and the image is

I've tried using *add_action('media_upload_image', 'my_function')*, but that
doesn't help.

Maybe using *add_filter('async_upload_image', 'my_function')* ?

Any ideas?


More information about the wp-hackers mailing list