[Phpmyadmin-devel] insert/update row with file contents
Sebastian Mendel
lists at sebastianmendel.de
Tue Dec 12 16:15:25 CET 2006
Jürgen Wind schrieb:
> i can confirm that upload from uploaddir fails if base_dir is set to
> "/htdocs" :
>
> Inserted rows: 1
> Warning (1265): Data truncated for column 'c1' at row 1
>
> SQL query:INSERT INTO `blobUplTest` ( `c1` , `DATE` , `blobF` )
> VALUES (
> 'with base_dir restriktions', '0', ''
> );
yes, this is what i expected,
so this piece of code is absolutely useless, if someone places the
$cfg['UploadDir'] out of open_base_dir ...
> but works well if base_dir is not set.
yes, if open_base_dir is not set, move_uploaded_file() is not invoked
--
Sebastian Mendel
www.sebastianmendel.de
More information about the Developers
mailing list