[eluser]tomcode[/eluser]
For simple, universal stuff I create helpers. They have the advantage to be usable anywhere, no need to respect the context I am in.
In Your case I'd create a library and probably also some config entries (paths, filetypes and so on) :
1. file uploads are probably only done inside a controller
2. configurations can be nicely commented / easily maintained
3. functionality can be split into single task methods for better control and readablity.