Package File
icms_file_DownloadHandler | Sends non HTML files through a http socket |
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(); } |
icms_file_TarDownloader | Send tar files through a http socket |
icms_file_TarFileHandler | tar Class |
icms_file_ZipDownloader | Handles compression of files in zip format and sending to the browser for download |