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

[eluser]metalking[/eluser]
Hello,

I've tried to use the File Uploading class in order to upload files with a custom extension .uvc. The MIME type is "text/plain" just like a .txt.
I've added a line in my config/mimes.php file, just below the 'txt'-one.
I'm doing the upload with this config : $config['allowed_types'] = 'uvc';

The class keeps saying that the file is not allowed. But if I change my file extension to .txt, and change the $config['allowed_types'] to 'txt' also, then it works... Both have exactly the same MIME type in the config/mimes.php ...

Does anyone have an idea of how to solve this problem?

Thanks!


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