Class icms_file_MediaUploadHandler
Upload Media files Example of usage:
$allowed_mimetypes = array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png'); $maxfilesize = 50000; $maxfilewidth = 120; $maxfileheight = 120; $uploader = new icms_file_MediaUploadHandler('/home/httpdocs/uploads', $allowed_mimetypes, $maxfilesize, $maxfilewidth, $maxfileheight); if($uploader->fetchMedia($_POST['uploade_file_name'])) { if(!$uploader->upload()) { echo $uploader->getErrors(); } else { echo '<h4>File uploaded successfully!</h4>' echo 'Saved as: ' . $uploader->getSavedFileName() . '<br />'; echo 'Full path: ' . $uploader->getSavedDestination(); } } else { echo $uploader->getErrors(); }
		
		
		
		Package: File
Category: ICMS
Copyright: copyright (c) 2000-2007 XOOPS.org
License: GNU General Public License (GPL)
Author: Kazumi Ono onokazu@xoops.org
Author: phppp
Located at file/MediaUploadHandler.php
	
	Category: ICMS
Copyright: copyright (c) 2000-2007 XOOPS.org
License: GNU General Public License (GPL)
Author: Kazumi Ono onokazu@xoops.org
Author: phppp
Located at file/MediaUploadHandler.php
| 
			 public 
			
			
			 | 
		#
		 __construct( string $uploadDir, array $allowedMimeTypes, integer $maxFileSize = 0, integer $maxWidth = null, integer $maxHeight = null )Constructor | 
| 
			 public 
			boolean
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 public 
			integer
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 public 
			boolean
			
			 | |
| 
			 public 
			boolean
			
			 | |
| 
			 public 
			boolean
			
			 | |
| 
			 public 
			boolean
			
			 | |
| 
			 public 
			boolean
			
			 | |
| 
			 public 
			boolean
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			array|string
			
			 |