Upload Error in Version 0.7

5 views
Skip to first unread message

Amy

unread,
Nov 12, 2009, 12:59:18 PM11/12/09
to SubjectsPlus
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

Andrew Darby

unread,
Nov 12, 2009, 1:24:40 PM11/12/09
to subjec...@googlegroups.com
Looks like it's a permissions issue. Try setting the docs folder to
755 or 777 and see if the upload works then.

Amy

unread,
Nov 12, 2009, 3:08:12 PM11/12/09
to SubjectsPlus
I suspected it was going to be something embarrassingly simple, and
indeed it was. I can't believe I didn't think of that.

Thanks, Andrew!


On Nov 12, 1:24 pm, Andrew Darby <agda...@gmail.com> wrote:
> Looks like it's a permissions issue.  Try setting the docs folder to
> 755 or 777 and see if the upload works then.
>
Reply all
Reply to author
Forward
0 new messages