Welcome Guest, Not a member yet? Register   Sign In
Problems with CI file upload controller and Flex (FileReference class)
#5

[eluser]log2e[/eluser]
If I extract the MIME type by

Code:
$data = $this->upload->data();
$mimeType = $data['file_type'];

I get "application/octet-stream" - no matter if it is a JPG, GIF or PNG file. I followed your advice and added this MIME type to the three image formats in "/config/mimes.php", and now it works!

Btw, I also tested the file upload with the upload class from verot.net. This script also reports "application/octet-stream" as the MIME type. So I guess it's not a PHP or CI issue. But who is the culprit here? The FileReference class, the Flash Player, or the browser? Or is it a server-side setting?

Thanks for your help!


Messages In This Thread
Problems with CI file upload controller and Flex (FileReference class) - by El Forum - 05-03-2008, 12:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB