[Phpmyadmin-devel] problem with setUploadedFromTblChangeRequest

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.

Marc Delisle schrieb:
Hi, in libraries/PMA_File.class.php::setUploadedFromTblChangeRequest(), sometimes $file['error'] is a numeric (this is expected) but sometimes it's an array.
[...]
insert a row then try to edit it. I get Unknown error in file upload for every edit.
yes, just minutes ago i stumbled over it by myself ... ;-) working on this import/upload file stuff -- Sebastian Mendel www.sebastianmendel.de
participants (2)
-
Marc Delisle
-
Sebastian Mendel