Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » File picker
Re: File picker [message #382 is a reply to message #380] Wed, 08 November 2006 11:23 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2363
Registered: April 2006
Location: Surrey, UK
Senior Member
You are getting that message because you have not specified which file to download.

Take a look in script radicore/xample/person_filedownload.php for a working example. It uses subclass x_person_s01 which contains the following code in the _cm_post_getData() method:
function _cm_post_getData ($rows, &$where)
// perform custom processing after database record(s) are retrieved.
// NOTE: $where is passed BY REFERENCE so that it may be modified.
{
    // specify which file is to be downloaded
    foreach ($rows as $rownum => $rowdata) {
       	$rows[$rownum]['download_filename'] = $rowdata['picture'];
      	// 'inline' does not give any option to save
        //$rows[$rownum]['download_mode'] = 'inline';
    } // foreach

    return $rows;

} // _cm_post_getData


All this is described in http://www.tonymarston.net/php-mysql/dialog-types.html#filed ownload.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: std.list3 problem
Next Topic: std.list3 passing middle table to child form
Goto Forum:
  


Current Time: Sat Nov 09 00:05:56 EST 2024

Total time taken to generate the page: 0.01077 seconds