Every time time I get the error that the directory does not exist. When I set the make dir option to true, it seems that its trying to make a dir.. nowhere! Here's the debug:
Warning: mkdir() [function.mkdir]: No such file or directory in /Library/WebServer/Documents/mysite/upload_class/upload_class.php on line 150
Warning: move_uploaded_file(1168535720.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /Library/WebServer/Documents/mysite/upload_class/upload_class.php on line 130
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/phpNiFkAV' to '1168535720.jpg' in /Library/WebServer/Documents/mysite/upload_class/upload_class.php on line 130
Any suggestions? Thanks
« Last Edit: Jan 11, 2007, 07:31:00 PM by konkapp »
Global Moderator
Internet Junkie
Gender:
Posts: 1807
9006 credits Members referred : 6
« Reply #1 on: Jan 11, 2007, 08:19:11 PM »
Good to hear you got it working! What about sharing the solution to your problem, so other people with the same problem can find the solution here?
// Place whichever html form element and simply post its value. // For my case, it is a list box, populated from a recordset. // The list box value is the path e.g. "../images/products1/"
$my_upload->upload_dir = $_POST['updir'];
$my_upload->upload($new_name); }
That simple!
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6486
39748 credits Members referred : 374