Home Forums Plugin Support WP User Frontend Pro Image Size Validation

This topic is: not resolved

This topic contains 1 reply, has 1 voice, and was last updated by  Markus 5 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9778

    Markus
    Member
    Post count: 1

    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

    #9784

    Markus
    Member
    Post count: 1

    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 2 posts - 1 through 2 (of 2 total)

The topic ‘Image Size Validation’ is closed to new replies.