/ Published in: PHP
I know this code isn't perfect (and there's a spot where it kind of repeats itself), but I figured I'd share anyway.
NOTE: This code assumes that you are programming in CodeIgniter and you have uploaded a file and posted to a Controller which then contains this chunk of code.
NOTE: This code assumes that you are programming in CodeIgniter and you have uploaded a file and posted to a Controller which then contains this chunk of code.