Advanced Multi Uploader Support Product Page

PHP Advance Multi-Uploader

Asked 21 Jun 2010 03:45:19
1
has this question
21 Jun 2010 03:45:19 Chuck Borrelli posted:
Hi,

I am trying to have the user select the destination folder for the image using getcwd() and chdir to set the destination folder...

See code below:

<?php
// setting directory
if (isset($_POST['setDirectory'])) {
chdir("/vservers/iponly206190/htdocs/wwgallery/albums/ftpuploads/".$_POST['subs']);
} else {
chdir("/vservers/iponly206190/htdocs/wwgallery/albums/ftpuploads/";

} //end check on setting directory
$destDir=getcwd();
//echo $destDir;

/// now fix pure php upload directory

//calculate directory name for upload
$fullPath=getcwd();
echo "<p>full path is: $fullPath </p>";
$newPath=str_replace("/vservers/iponly206190/htdocs/","",$fullPath);
echo "newPath is: $newPath";

?>

From here, I want to set the destination folder:

ppu->path = "$newPath";

I have reviewed the following, and have tried working on it, but still not working..

www.dmxzone.com/forum/topic/42600/

Replies

Replied 21 Jun 2010 10:09:44
21 Jun 2010 10:09:44 Miroslav Zografski replied:
Hello Chuck,

Passing a variable for the path should be working just fine.
Will check your way of setting it. Also the topic you have red is described within the manual of the product as well.

Regards,

Reply to this topic