I don't think the uploader has ever worked for us, but I kept
forgetting to fix it. Anyway, when someone tries to upload a file,
they get the error message:
There was a problem uploading your file.Please try again, or contact
the administrator.
Looking in my apache error log I found this:
[Thu Nov 12 13:56:00 2009] [error] [client 10.110.8.230] PHP Warning:
move_uploaded_file(../../subjects/docs/test_11-12-09.txt) [<a
href='function.move-uploaded-file'>function.move-uploaded-file</a>]:
failed to open stream: Permission denied in /srv/www/htdocs/subsplus/
control/includes/functions.php on line 614, referer:
http://library.wheelock.edu/subsplus/control/rxs/guides.php
[Thu Nov 12 13:56:00 2009] [error] [client 10.110.8.230] PHP Warning:
move_uploaded_file() [<a href='function.move-uploaded-
file'>function.move-uploaded-file</a>]: Unable to move '/tmp/
phpBTM9x1' to '../../subjects/docs/test_11-12-09.txt' in /srv/www/
htdocs/subsplus/control/includes/functions.php on line 614, referer:
http://library.wheelock.edu/subsplus/control/rxs/guides.php
Line 614 of functions.php is this:
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],
$target_path_2))
Any ideas on what the problem might be or what I might try to fix
this?
Thanks!
Amy