Upload path problem
Posted: Mon May 07, 2007 6:57 am
I've got an upload script for a photo gallery that I've created which has accepts a URL parameter called 'album' and according to woteva that parameter is finishes the path for the image to be uploaded to. However I'm not sure that the way I've done it is correct because it's not working.
Can someone look at the code and tell me the correct code to replace it with.
$album = $_GET['album'];
$multi_upload->upload_dir = $_SERVER['DOCUMENT_ROOT']."/mirrabookahs/p/albums/$album/"
As you can see the url parameter album gets assigned to the variable album, then gets inserted into the next line, however does not work. The image just gets uploaded to /mirrabookahs/p/albums. NOTE that the album folder is already created so it's not as if the folder isn't there.
Also I don't get any PHP errors when I run this script, it says the image is successfully uploaded.
Can someone look at the code and tell me the correct code to replace it with.
$album = $_GET['album'];
$multi_upload->upload_dir = $_SERVER['DOCUMENT_ROOT']."/mirrabookahs/p/albums/$album/"
As you can see the url parameter album gets assigned to the variable album, then gets inserted into the next line, however does not work. The image just gets uploaded to /mirrabookahs/p/albums. NOTE that the album folder is already created so it's not as if the folder isn't there.
Also I don't get any PHP errors when I run this script, it says the image is successfully uploaded.