Projects / class.upload.php


class.upload.php manages file uploads for you. It manages the uploaded file and allows you to do whatever you want with the file as many times as you want. If the file is an image, you can convert and resize it, rotate it, crop it in many ways. You can also add borders, frames, bevels, text labels, and watermarks or apply graphic filters such as unsharp mask, contrast or brightness correction, colorization, negative, greyscale, reflections, and more. Security features and file management functions are provided. Flash uploaders and XMLHttpRequest uploads are supported. The class can also work on local files, is useful for batch processing, and can circumvent open_basedir restrictions. Files can be output directly to the browser. The error messages are internationalized, and translations provided. It is compatible with PHP 4 and 5.

Operating Systems

Recent releases

  •  15 Jan 2013 00:45

    Release Notes: This release adds full support for XMLHttpRequest uploads, the ability to pixelate images, and many small fixes.

    •  11 Apr 2011 20:54

      Release Notes: Several transparency options have been added when uploading images. Handling of dangerous files and extensions has been improved.

      •  05 Sep 2010 16:40

        Release Notes: New features and bugfixes. An unsharp mask has been implemented, transparent watermarks are dealt with better, and it is now possible to resize the watermark depending on the picture.

        •  05 Feb 2010 01:53

          Release Notes: New features and bugfixes were made. The class is now compatible with PHP 5.3. MIME detection is stronger and more documented. Malicious images cannot be uploaded.

          •  10 Aug 2009 20:42

            Release Notes: The class is now compatible with PHP 5.3. MIME detection is stronger and better documented. Safe mode handling has been improved.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.