
Biju - 2009-10-23 04:12:17 -
In reply to message 3 from Terry Kennedy
Hi, Terry
you can upload any type of files using this class. For this you need to do some simple customisation.
1. You need to specify possible file type extensions in the function call- $upfile->setExtensions('jpeg,jpg,png,gif,flv');- in the uploading file.
2. You need to add a block for the mime types of the required file type in the function 'is_typesupported' in the class file. Look in to the block for image file types.
===================================
if($fextn=='jpeg' || $fextn=='pjpeg' || $fextn=='jpg' || $fextn=='gif' || $fextn=='png')
{
$ftype_array = array("image/pjpeg","image/jpeg","image/gif","image/x-png","image/png");
if(in_array($ftype,$ftype_array))
{
$frmt_return = 1;
}
}
===============================
Regards
Biju