Fix for code igniter csv uploads via windows


/ Published in: PHP
Save to your folder(s)

Not a great solution will need to look further at why files are being sent in binary form

Add this to the mime types array in the Upload class


Copy this code and paste it in your HTML
  1. 'csv' => array('text/plain','application/octet-stream'),
  2. 'tsv' => array('text/plain', 'application/octet-stream')

URL: http://www.codeigniter.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.