Welcome Guest, Not a member yet? Register   Sign In
CSV file doesn't upload in Chrome or Rockmelt
#1

[eluser]Unknown[/eluser]
Using Chrome 8.0.552.210 beta, Rockmelt 0.8.36.79, firefox 3.6.12

Uploading the CSV file with the correct mimes said that it was the wrong file type or the file type wasn't allowed in chrome and rockmelt, but in firefox it worked completely fine. Looked into this a little bit more and what was happening for some reason is the file type was empty for chrome and rockmelt, but in firefox it was showing up as 'text/csv'. I guess it's not really CI's fault but more of the browser issue, but wasn't sure where this could have been put. I temporarily put in a condition to fix this problem in the upload.php file.

Added

Code:
//Google Chrome Hack for CSV Files
if($this->file_type == '' && $this->file_ext == '.csv')
{
  $this->file_type = 'text/csv';
}

within the do_upload function and after all the file stuff was instantiated.

Hope this helps someone, i wasn't able to find anything on this so had to do some investigative work Smile If anyone else finds another solution please tell!




Theme © iAndrew 2016 - Forum software by © MyBB