= Retrieve the upload progress = http://mediamosa.org/content/retrieve-upload-progress-1 [[BR]] [[BR]] If you want to use the uploadprogress, your system must have apc or uploadprogress extension. We suggest apc.[[BR]] [[BR]] You can check your system about existence of apc here: http://your-mediamosa/admin/reports/status/php [[BR]] [[BR]] http://pecl.php.net/package/apc [[BR]] APC (Alternative PHP Cache is a PECL extension of PHP) should be installed on the server where the users upload their files.[[BR]] [[BR]] Your page should contains the following: {{{ /** * Determine which upload progress implementation to use, if any available. */ function upload_progress_implementation() { static $implementation; if (!isset($implementation)) { if (extension_loaded('apc') && ini_get('apc.rfc1867')) { $implementation = 'apc'; } else if (extension_loaded('uploadprogress')) { $implementation = 'uploadprogress'; } } return $implementation; } }}} [[BR]] ... Your Drupal form should have: {{{ // Uploadprogress field. if ($implementation = upload_progress_implementation()) { $upload_progress_key = md5(mt_rand()); if ($implementation == 'apc') { $form['APC_UPLOAD_PROGRESS'] = array('#type' => 'hidden', '#value' => $upload_progress_key); } else if ($implementation == 'uploadprogress') { $form['UPLOAD_IDENTIFIER'] = array('#type' => 'hidden', '#value' => $upload_progress_key); } } }}} The id (upload progress key) should be random. Don't use constant.[[BR]] [[BR]] Then you can ask the /mediafile/uploadprogress [GET] REST call with id=$upload_progress_key .[[BR]] [[BR]] If you don't want to use Drupal, this is the pure PHP / HTML version:[[BR]] {{{ }}} [[BR]] http://pecl.php.net/bugs/bug.php?id=13583 [[BR]] According to the PECL ticket we should write the progress key before the file input. Eg.[[BR]] {{{
}}}