Adding additional information to upload file results in empty field
Adding additional information to upload file results in empty field
nessinits
Posts: 86Questions: 27Answers: 0
Hi everyone,
I'm trying to add additional information while uploading a file, however the POST or GET data for foreign_id isn't stored in the database. What am I doing wrong?
->upload( Upload::inst( $_SERVER['DOCUMENT_ROOT'].'/site/workload/documents/n__ID__.__EXTN__' )
->db( 'files', 'id', array(
'foreign_id' => $_REQUEST['foreign_id'],
'filename' => Upload::DB_FILE_NAME,
'filesize' => Upload::DB_FILE_SIZE,
'web_path' => Upload::DB_WEB_PATH,
'system_path' => Upload::DB_SYSTEM_PATH
) )
Kind regards,
nessinits
This discussion has been closed.
Replies
Could you try:
Thanks,
Allan
Thanks Allan, that works.
This discussion can be closed