[Phpmyadmin-devel] problem with setUploadedFromTblChangeRequest
    Marc Delisle 
    Marc.Delisle at cegepsherbrooke.qc.ca
       
    Thu Mar 29 17:06:11 CEST 2007
    
    
  
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.
    
    
More information about the Developers
mailing list