Welcome Guest, Not a member yet? Register   Sign In
File Upload Class - MIME type detection error - 2.1.0
#11

[eluser]kanhai[/eluser]
I did some debugging and found that in the is_allowed_filetype function in line 624 for a csv file the $this->file_type returns text/plain where as when I check in the $_FILES["file"]["type"] it returns text/csv

I added the text/plain in the csv array in the application/config/mime.php file and it started working,

what I am wondering is that is this a bug? and should I file a bug report for this?

There are two possible solutions
1. Find out why there is this difference in these two and fix it (this feels the correct way to solve this)
2. just add text/plain in the csv array in mimes.php file (this seems the easy way, not sure if this is correct).

I could file a bug and suggest that we should add the text/plain in the csv array anyway in the next build.

Kanhai Chhgani


Messages In This Thread
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 11-17-2011, 01:35 PM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 04-16-2012, 09:42 AM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 04-19-2012, 12:08 AM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 05-16-2012, 08:42 AM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 05-17-2012, 10:35 PM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 06-27-2012, 10:59 AM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 07-06-2012, 02:39 AM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 07-17-2012, 11:52 AM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 07-22-2012, 10:21 AM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 07-22-2012, 11:53 AM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 07-23-2012, 01:42 AM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 08-27-2012, 04:34 AM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 09-11-2012, 12:12 AM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 09-12-2012, 01:00 AM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 09-20-2012, 02:30 PM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 07-17-2013, 11:46 AM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 11-20-2013, 09:29 PM
File Upload Class - MIME type detection error - 2.1.0 - by El Forum - 08-26-2014, 08:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB