/* File: upload.js Title: progressupload plugin for xajax */ /* @package progressupload plugin @version $Id: @copyright Copyright (c) 2007 by Steffen Konerow @license http://www.xajaxproject.org/bsd_license.txt BSD License */ /* Class: xajax.ext.uploadProgress This file demonstrates the uploadProgress plugin for xajax. */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2007/01/19 00:45 -=[TODO]=- PHP APC: - LIGHTY: - PHP FALLBACK: - NGINX: - 0 lines of code yet CGI FALLBACK: - 0 lines of code yet GLOBAL: - fix Rate NaN - autocreate progressbar(?!?) - elapsed / remaining time - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ ini_set("display_errors",1); error_reporting(E_ALL ^E_NOTICE); $core = './xajax/xajax_core'; require_once $core . '/xajax.inc.php'; $xajax = new xajax(); require_once './xajax/xajax_plugins/request/upload/upload.inc.php'; $xajax->configure("javascript URI","/upload/xajax/"); $xajax->configure("UploadProgressType","PHP"); $xajax->register(XAJAX_UPLOAD_FUNCTION,"uploader"); $xajax->processRequest(); function uploader($aFormValues) { $objResponse = new xajaxResponse(); $objResponse->assign("results","innerHTML","woohooo! it works! this is a standard xajax response containing \n
\$_FILES:\n ".print_r($_FILES,true)."\nAND formvalues:\n".print_r($aFormValues,true)."" ); return $objResponse; } ?>