Welcome Guest, Not a member yet? Register   Sign In
[Upload Class] Problem using custom file extension
#4

[eluser]BrianDHall[/eluser]
Also you may wish to look at this: file helper class

Quote:get_mime_by_extension('file')

Translates a file extension into a mime type based on config/mimes.php. Returns FALSE if it can't determine the type, or open the mime config file.

$file = "somefile.png";
echo $file . ' is has a mime type of ' . get_mime_by_extension($file);
Note: This is not an accurate way of determining file mime types, and is here strictly as a convenience. It should not be used for security.

You might run that on an instance of your uvc file as well to ensure your mime file is setup and working correctly.


Messages In This Thread
[Upload Class] Problem using custom file extension - by El Forum - 09-08-2009, 02:24 PM
[Upload Class] Problem using custom file extension - by El Forum - 09-09-2009, 08:25 AM
[Upload Class] Problem using custom file extension - by El Forum - 09-09-2009, 10:13 AM
[Upload Class] Problem using custom file extension - by El Forum - 09-09-2009, 10:57 AM
[Upload Class] Problem using custom file extension - by El Forum - 09-09-2009, 11:45 AM
[Upload Class] Problem using custom file extension - by El Forum - 09-10-2009, 03:24 PM
[Upload Class] Problem using custom file extension - by El Forum - 09-10-2009, 06:49 PM
[Upload Class] Problem using custom file extension - by El Forum - 09-10-2009, 07:33 PM
[Upload Class] Problem using custom file extension - by El Forum - 09-10-2009, 08:00 PM
[Upload Class] Problem using custom file extension - by El Forum - 09-10-2009, 11:25 PM
[Upload Class] Problem using custom file extension - by El Forum - 09-11-2009, 07:55 AM
[Upload Class] Problem using custom file extension - by El Forum - 09-14-2009, 10:02 AM
[Upload Class] Problem using custom file extension - by El Forum - 09-14-2009, 10:42 AM
[Upload Class] Problem using custom file extension - by El Forum - 09-14-2009, 05:30 PM
[Upload Class] Problem using custom file extension - by El Forum - 09-14-2009, 11:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB