[imp] [Fwd: Problem with attachments]

Russell Steffen rsteffen@bayarea.net
Tue, 20 Aug 2002 15:59:13 -0700


Hi,

I'm having a very difficult time getting attachments to work in IMP. I'm
using Red Hat 7.3, everything is stock except for PHP, which I've
upgraded to 4.2.2 (Prior to that outgoing mail wouldn't work at all).
I'm using IMP 3.1, Horde 2.1.

The problem is that when I try to add an attachment to a message, I get
returned to the compose screen with the error "There was a problem with
the file upload. The file may have been larger than the maximum allowed
size". To answer the obvious questions, yes, file_uploads are turned on
in both /etc/php.ini and in the apache config for the horde directory.
And, the maximum upload size is set to 15MB, and the files I'm testing
with are much, much smaller. Also, the upload directory is to /tmp,
which has it's normal permissions.

Investigating further, I found that the file contents do get sent to the
server (verified with ethereal), but they do not ever appear in /tmp.
During the upload, a very small file (4 or 5 bytes) always named
".806.4802e" appears. It contains an ASCII number in the 10000-range. It
is deleted as soon as the upload is complete. The permissions on the
file, while it exists are mode 666, but the owner and group are random
and usually non-existant.

In a debugging effort, I added a call to phpinfo() just after the the
ADD_ATTACHMENT case in compose.php, and I could see that the _POST
variables the code is looking for were simply not set, which is what
triggers the error message above.

I've been pounding my head on this for a week now and I haven't gotten
anywhere. Any ideas on where I might have gone wrong?

- Russ
rsteffen@bayarea.net