This topic contains 2 reply and 2 voices, and was last updated by Tareq Hasan 6 years, 6 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
January 3, 2014 at 7:20 am 14107
Tareq Hasan Hello, I know you can check file size on upload but is it possible to check image width and height? I have users uploading images that are extremely small and just not working correctly. Any help on this would be greatly appreciated.
January 8, 2014 at 7:38 am 14234
Jamie Jamie

Any help on this would be great.

January 8, 2014 at 12:20 pm 14237
Tareq Hasan Tareq Hasan

Right now, it’s not possible to check the height & width. In that case, it needs to be in client side.

We are using Plupload for image uploading via Ajax, WordPress uses this too. File uploading is handled by /js/upload.js. I am not sure how as I didn’t tinkered with this, but you can use the plupload event handlers to check the size of a file once it’s added on the queue.

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