0

i need to upload images in imagegallery throuhg plugin in '/wp-content/images' folder.
for that i need to set this path in 'Miscellaneous Settings' given in wordpress.
if i give '/wp-content/images' there, all the images i upload in wordpress will be going tho this folder..
otherwise if i give the option "Organize my uploads into month- and year-based folders" then the images uploaded willbe going to seperate folders but retriving that is difficult...
how can i solve this....

2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by jisnack
0

I tried my owm plugin to add images in wp-content/images folder... when I change Miscellaneous Settings, my plugin was working but other images in post have some problm.. images are not displying.

0
<?php

if(isset($_POST['submit']))
{

        //print_r($_FILES);
    $filename = $_FILES['userfile1']['name'];
    $filfolder2 = $filename;
    $src = $_FILES['userfile1']['tmp_name'];
    $dst = "/var/www/wordpress/wp-content/uploads/".$_FILES['userfile1']['name'];
    move_uploaded_file($src,$dst);

}
?>

this is the code...

Edited by mike_2000_17: Fixed formatting

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.