[turba] Re: [horde] No such file when importing
Nate Mollring
nmollring@cennecs.org
Wed Nov 27 00:06:38 2002
Quoting Jan Schneider <jan@horde.org>:
> Zitat von Nate Mollring <nmollring@cennecs.org>:
>
> > Quoting Jan Schneider <jan@horde.org>:
> >
> > > Zitat von Randy Tunison <RandyTunison@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?
>
Here is what I get with the added line
array(1) { ["import_file"]=> array(5) { ["name"]=> string(12) "contacts.csv"
["type"]=> string(24) "application/octet-stream" ["tmp_name"]=> string
(14) "/tmp/phpIsrHwe" ["error"]=> int(0) ["size"]=> int(2912) } } bool(false)
Nate
More information about the turba
mailing list