Upload Image Access in action or filter
Viewing 1 Posts - 1 through 1 (of 1 total)
Author | Posts |
---|---|
April 12, 2013 at 9:11 pm 2117 | |
Tareq Hasan | 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 :( |
April 13, 2013 at 2:40 am 2125 | |
Tareq Hasan | 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 |
Viewing 1 Posts - 1 through 1 (of 1 total)