[imp] Attachment woes..
Jason Keltz
jas@cs.yorku.ca
Tue, 28 Nov 2000 08:53:21 -0500 (EST)
Hi Jeff.
I tried to document the reason for this in a previous message, but I don't
think I did a very good job because I didn't get any response.
The problem is that you can set your "upload_tmp_dir" in php.ini (which
defaults to /tmp if you do not set anything) to anything you want --- so
long as its "/var/tmp"! In other words, (and someone *please* correct me
if I'm wrong here), no matter you set "upload_tmp_dir" to, it seems to me
that the file is first written to "/var/tmp", and then IMP tries to open
it in the proper location. If "upload_tmp_dir" is not set, this means
that the attachment is first written to "/var/tmp", and then IMP tries to
open it from "/tmp". If you set "upload_tmp_dir" to "/var/tmp", this will
fix the problem, but a more general fix (and understanding of the problem)
is required.
Jason.
On Tue, 28 Nov 2000, Jeff MacDonald wrote:
> Imp: version: 2.2.3
> on apache/postgresql/freebsd
>
> ----
>
> When I attach a file in the imp, I get the following error appearing at the top
> of my composition screen, although everything else appears as normal:
>
> Warning: Unable to open '/tmp/phpsvf703' for reading: No such file or directory
> in /usr/local/www/horde/imp/compose.php3 on line 910
>
> And when I try to remove it, I get this error:
>
> Warning: Unlink failed (No such file or directory)
> in /usr/local/www/horde/imp/compose.php3 on line 935
>
> Some of the attachments are being sent alright anyways, but more often than not
> my recipient is receiving a file with nothing in it, that's approximately 60
> bytes or so.....
>
> help
>
>
>
> Jeff MacDonald,
>
> -----------------------------------------------------
> PostgreSQL Inc | Hub.Org Networking Services
> jeff@pgsql.com | jeff@hub.org
> www.pgsql.com | www.hub.org
> 1-902-542-0713 | 1-902-542-3657
> -----------------------------------------------------
> Facsimile : 1 902 542 5386
> IRC Nick : bignose
>
>
> --
> IMP mailing list: http://horde.org/imp/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>