[Phpmyadmin-devel] insert/update row with file contents

Sebastian Mendel lists at sebastianmendel.de
Tue Dec 12 15:57:30 CET 2006


Marc Delisle schrieb:
> Sebastian Mendel a écrit :
>> Hi,
>>
>> is there an option to select a file from a user directory to be filled
>> into a field?
> 
> Yes, try Insert into a table containing a BLOB.
> 
>> if so, than tbl_replace_fields.inc.php handles this, but it uses
>> move_uploaded_file() on this file, did anybody test this this?
> 
> It has been tested a few years ago.
>> does this work?
>>
>> move_uploaded_file() should only work on files uploaded by form ...
>>
>>
> 
> On the Insert page, the file is uploaded thru a form.


i am not talking about uploaded files via form, i am talking about the
file a user can select when $cfg['UploadDir'] is set

if open_basedir restriction is set PMA checks for a directory ./tmp/,
only checks, but does not create it, i don't know if this mentioned
somewhere in the documentation

if this directory exists and is writable, PMA trys to move the file out
of the $cfg['UploadDir'] to this tmp-directory with the function
move_uploaded_file() ... IMHO this will not work!


can anyone confirm?


-- 
Sebastian Mendel

www.sebastianmendel.de




More information about the Developers mailing list