Image Size Validation

This topic contains 1 reply and 1 voices, and was last updated by Markus 10 years, 5 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
November 5, 2013 at 7:22 pm 9778
Markus Hi, wehre should i hook an image size validation on WP User Frontend Pro? Any ideas? The last two day I wrote an hokked Regex validation system for it, works great, thanks again @Tareq :) Best regards
November 6, 2013 at 12:24 am 9784
Markus Markus

Hi again…

after 3 or 4 hours of code review here my findings till now:

The upload.php file handles all of the upload, called by upload.js
But it looks like there is no do_action to hook an image validation.

I tried to implement an action listener, wich will be activated when a new item is uploaded. In this way I could make an ajax call to WordPress where i get the size validation data.
But this won’t work, because there isn’t an action listener like this.

It would be great to have an do_action() somewhere in the upload.php and an outgoing error handling.

Of course I could had overseen something. This would be best and save me a lot of trouble 😛

Would be great if anybody could help me here.

Best regards

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