function imce_js_upload

cis7 imce.js.inc imce_js_upload(&$imce)
cle7 imce.js.inc imce_js_upload(&$imce)
elmsmedia7 imce.js.inc imce_js_upload(&$imce)
icor7 imce.js.inc imce_js_upload(&$imce)
meedjum_blog7 imce.js.inc imce_js_upload(&$imce)
mooc7 imce.js.inc imce_js_upload(&$imce)

Ajax operation: upload

File

sites/all/modules/ulmus/imce/inc/imce.js.inc, line 23
Handles ajax file operations.

Code

function imce_js_upload(&$imce) {
  if ($imce['perm']['upload']) {
    $_POST['op'] = t('Upload');
    drupal_get_form('imce_upload_form', array('imce' => &$imce));
    return array(
      'added' => isset($imce['added']) ? $imce['added'] : NULL,
      'dirsize' => format_size($imce['dirsize']),
    );
  }
}