sloppycode.net
Upload class
A class for simplying the uploading of files.


Download source + documentation

The Upload class is a wrapper for uploading files using html forms. The form should have the 'enctype="multipart/form-data"' attribute for this the files to be uploaded properly.

The Class should be created by passing $HTTP_POST_FILES as the only argument for the constructor (e.g. $upload = new Upload(&$HTTP_POST_FILES)), and also by reference (the & indicates this). See the example for a sample usage. Example:

This class like all PHP classes on sloppycode.net was made in PHP 3.x or 4, so unfortunately isn't guaranteed to be error free anymore.



› Home
› C#
› Snippets
› Articles
› Tools
› Taglines
› ASP
› Dictionary Object
› FSO
› Unix cheat sheet
› Gaming
› CSS
› Yak
› Umbraco
› About
› Contact
› Privacy
› Projects
› Search