[imp] Attachments fail, uploads don't (was: All but attachmen ts)

Jan Schneider jan@horde.org
Wed, 12 Jun 2002 16:01:04 +0200


Zitat von Joost De Cock <Joost.DeCock@astrid.be>:

> ok, so I dived into the source code,
> 
> I changed the 2 identical error mesages in ADD_ATTACHMENT case in
> compose.php so I can differentiate between them.
> 
> I have a problem with this if statement:
> 
> if (!isset($HTTP_POST_FILES['file_upload']['size']) ||
>         !isset($HTTP_POST_FILES['file_upload']['tmp_name']) ||
>         !is_uploaded_file($HTTP_POST_FILES['file_upload']['tmp_name'])){
> 
> It gets triggered so I receive a "there was a problem blablabla...

Try to put a 
var_dump($HTTP_POST_FILES); 
before the if statement. If all the array member are set, try a 
var_dump(is_uploaded_file(....));

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft