
29 Mar
2007
29 Mar
'07
5:06 p.m.
Hi, in libraries/PMA_File.class.php::setUploadedFromTblChangeRequest(), sometimes $file['error'] is a numeric (this is expected) but sometimes it's an array. Then, doing switch ($file['error']) only reaches the default case. To reproduce, use CREATE TABLE `audios` ( `id` smallint(5) unsigned NOT NULL auto_increment, `title` varchar(50) NOT NULL, `audio` longblob NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=78 ; insert a row then try to edit it. I get Unknown error in file upload for every edit.