![]() |
.sql file upload - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: .sql file upload (/showthread.php?tid=21981) |
.sql file upload - El Forum - 08-26-2009 [eluser]asmode[/eluser] Hi, i want to upload .sql file for import but i take this message: The filetype you are attempting to upload is not allowed. i write $config['allowed_types'] = 'csv|x-sql'; to upload csv and sql files. what can i do? .sql file upload - El Forum - 08-26-2009 [eluser]Neeraj Kumar[/eluser] try adding only sql in allowed types .sql file upload - El Forum - 08-26-2009 [eluser]asmode[/eluser] i tried it but i had the same mistake ![]() .sql file upload - El Forum - 08-26-2009 [eluser]pistolPete[/eluser] What mime type does the browser send? Add it to the $mimes array in mimes.php. .sql file upload - El Forum - 08-26-2009 [eluser]asmode[/eluser] [quote author="pistolPete" date="1251309961"]What mime type does the browser send? Add it to the $mimes array in mimes.php.[/quote] thanks ![]() i added this line to mimes array: 'sql' => 'text/x-sql' |