[wp-hackers] Plupload, WP 3.3 and client-side resizing

Braydon ronin at braydon.com
Tue Jan 31 19:09:54 UTC 2012

On 01/31/2012 07:06 AM, Jeremy Clarke wrote:
> On Mon, Jan 16, 2012 at 4:33 PM, Manuel Schmalstieg<webdev at ms-studio.net>wrote:
>> I was really hoping that Plupload would provide some way of detecting
>> such a large image, before WP even attempts to downsize it.
> Have you tried looking for a plugin that sets a maximum upload size? I know
> that PHP can set limits on the biggest file you can upload, so you could
> use that as a way of stopping users from uploading enormous photos, though
> you'd also be blocking uploads of other filetypes that actually need large
> file sizes. If you can control the server configuration then you can
> definitely set maximum upload size directly in the PHP ini files.
On the PHP side could prevent the upload from completing, though after a 
wait; the wp_handle_upload hook could be the place to check and return 

More information about the wp-hackers mailing list