<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>RE: [K12OSN] file upload with php (squirrelmail and
other)</title></head><body>
<div><font face="Times" size="+3" color="#000000">Could not move/copy
file. File not attached</font></div>
<div>is what SM reports back.</div>
<div><br></div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite>What's the exact error your getting?<br>
<br>
-----Original Message-----<br>
From: k12osn-bounces@redhat.com [mailto:k12osn-bounces@redhat.com] On
Behalf<br>
Of Scott Sherrill<br>
Sent: Tuesday, June 22, 2004 7:17 AM<br>
To: k12osn@redhat.com<br>
Subject: [K12OSN] file upload with php (squirrelmail and other)<br>
<br>
this one is pulling out my hair.<br>
<br>
Working with file uploads and php --- in part with SquirrelMail
and<br>
also on a custom script I am writing another server.<br>
<br>
The SquirrelMail server is running RH9, Apache 2.0.40 and php
4.2.2.<br>
When a user goes to upload a file as an attachment SM reports back<br>
Cannot move/copy file.<br>
<br>
The SM wiki<br>
(http://www.squirrelmail.org/wiki/en_US/DirectoryPermissionsProblem
)<br>
talks about permissions and modifying the php.ini.  Both I am
pretty<br>
sure I have set right.<br>
<br>
In /etc/php.ini I have file_upload = On and in<br>
/etc/squirrelmail/config.php I have the attachment directory set
to<br>
/var/spool/squirrelmail/attach/ which is owned and writeable by<br>
apache.<br>
<br>
Still doesn't work.<br>
<br>
I put SM on the back burner for awhile, actually I had forgotten<br>
about it, until just recently when I started working on another<br>
program (mini photo gallery with file uploads and php).<br>
<br>
Different server this one is a RH AS3 box running Apache 2.0.46 and
php<br>
4.3.2<br>
Checked /etc/php.ini file_upload = On  I've tried changing the
file<br>
upload location to /tmp and also /tmp/uploads.<br>
<br>
I've tried perms on /tmp/uploads of 777 and ownership to apache.<br>
<br>
in this case no error, things just don't happen.<br>
<br>
I've restarted httpd after every change to php.ini.<br>
<br>
I am befuddled and sure I am missing something stupid and obvious,<br>
but I can't see it.<br>
<br>
I appreciate any suggestions -<br>
<br>
<br>
Scott<br>
<br>
<br>
_______________________________________________<br>
K12OSN mailing list<br>
K12OSN@redhat.com<br>
https://www.redhat.com/mailman/listinfo/k12osn<br>
For more info see <http://www.k12os.org><br>
<br>
<br>
_______________________________________________<br>
K12OSN mailing list<br>
K12OSN@redhat.com<br>
https://www.redhat.com/mailman/listinfo/k12osn<br>
For more info see <http://www.k12os.org></blockquote>
<div><br></div>
</body>
</html>