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

[eluser]BrianDHall[/eluser]
I'm working on file uploads right at the moment too.

OK, so to be clear, in config/mimes.php you have something like:

Code:
$mimes = array(    'uvc'    =>'text/plain');

Right?

Now upload your file using any method, and when you do run a var_dump($_FILES) - what is the 'type' coming back as, text/plain?

I don't see why that wouldn't work, but if it doesn't worst-case you'll need to google for a quick manual file upload script you can use so you can at least get this working while you figure out what's going wrong.

I don't see any way in the upload class to bypass the allowed filetype or set it to 'any', either, I'm afraid.


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