[eluser]LynxCoder[/eluser]
[quote author="the_unforgiven" date="1334325521"]So would this go in the controller or model? and do i rename the $filename to somrthing else?[/quote]
In the controller really, although the part where your stripping the extension off the filename could go in the model if you wanted it to.
Rich