Home Forums Plugin Support WP User Frontend Pro Upload Image Access in action or filter

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 6 years, 1 month ago.

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

    Sparhamster
    Participant
    Post count: 22

    I want to resize my images in an extra function.

    it works when i get the image url like http://www.imageupload.de/lala.png

    the user can upload an image OR post the image url into the form.

    in the filter or action i have to prove if an image was uploaded and get the url of the image.

    if(isset($_POST[‘Uploadbild'])){

    $imageurl = “http://www.testsite.at/wp-content/uploads/”.$_POST[‘Uploadbild'];

    }else{

    $imageurl = $_POST[imagelink];

    }

    but $_POST[‘Uploadbild'] wont work ๐Ÿ™

    #2125

    Tareq Hasan
    Keymaster
    Post count: 2831

    If an image is uploaded by the plugins image upload field, you won't find it like that. Image upload doesn't contain the image url, it contains the attachment ID of that image. And it posts like this $_POST['wpuf_files']['meta_key']

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

The topic ‘Upload Image Access in action or filter’ is closed to new replies.