[horde] No such file when importing

Jan Schneider jan at horde.org
Tue Nov 26 05:34:59 PST 2002


Zitat von Nate Mollring <nmollring at cennecs.org>:

> Quoting Jan Schneider <jan at horde.org>:
> 
> > Zitat von Randy Tunison <RandyTunison at higlum.com>:
> >
> > > I'm using the latest CVS version.  My problem, during importing
> (memos,
> > > task,
> > > contacts):
> > >
> > > Warning: Unable to open '/var/tmp/phpPCaG7L' for reading: No such
> file or
> > > directory in /var/apache/htdocs/horde1/lib/Data/csv.php on line 205.
> > >
> > > the permissions on /var/tmp are:
> > > drwxrwxrwt   2 root     sys      4096 Nov 25 16:10 tmp
> > >
> > > Apparently the import file does not get uploaded to /var/tmp. I don't
> see
> > > it
> > > with this name or any others.
> >
> > That's strange, it should work. The same applies to Nate's problem.
> > Can one or both of you please put a var_dump($_FILES) before line 205
> and
> > tell me the output?
> 
> I get
> array(1) { ["import_file"]=> array(5) { ["name"]=> string(11)
> "address.csv"
> ["type"]=> string(10) "text/plain" ["tmp_name"]=> string(14)
> "/tmp/phpW3y1ie"
> ["error"]=> int(0) ["size"]=> int(2507) } }
> Not exactly sure on the placement of the dump command(not exactly sure
> where
> that line is?)  This is on a fresh install of linux(e-smith 5.1.2) and
> horde
> cvs--as of last night.  Everything else works.  If it's not the correct
> placement of the dump command, can you describe it's location in
> reference to
> the text it needs to be in front of?

This looks fine. I have no idea, why moving the uploaded file didn't work.
What happens if you put var_dump(is_readable($_FILES['tmp_name'])) after the
other var_dump line?

Jan.

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


More information about the horde mailing list