upload wrapper class
<p>I have many kind of objects: categories, manufacturers, items, articles etc. Each object have it's file uploads: images, manuals in pdf etc. Uploaded files could be public and protected (available for view/download only for registered users).</p>

<p>I'd like to wrap whole upload routine into one (or more) class.</p>

<p>At the moment I have 2 defined constants at index.php (<code>PATH_UPLOAD_PUBLIC</code>, <code>PATH_UPLOAD_PROTECTED</code>). It is absolute paths to forders where I store public and protected files. Public path is avaiable from web, protected path is not available from web (it is under virtual host document root).</p>

<p>At the moment each controller's method dealing with upload have piece of code containing move_uploaded_file() an so on.</p>

<p>Please help to make it more beatiful and to separate this code into the class.</p>

<p>Thank you.</p>

<p>PS: Sorry for my English.</p>
