Ignore:
Timestamp:
Jun 19, 2007 4:04:42 AM (17 years ago)
Author:
quinn
Message:

Misc bug fixes. Added App::dropQuery() method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Upload.inc.php

    r256 r259  
    199199
    200200            // Check The php upload error messages.
    201             if (UPLOAD_ERR_INI_SIZE === $files['error'][$i]) {
     201            if (UPLOAD_ERR_INI_SIZE === $files['error'][$i]) { // Error code 1
    202202                $this->_raiseMsg(sprintf(_("The file %s failed uploading: it exceeds the maximum allowed upload file size of %s."), $file_name, ini_get('upload_max_filesize')), MSG_ERR, __FILE__, __LINE__);
    203203                $app->logMsg(sprintf('The file %s failed uploading with PHP error UPLOAD_ERR_INI_SIZE (currently %s).', $file_name, ini_get('upload_max_filesize')), LOG_ERR, __FILE__, __LINE__);
     
    205205                continue;
    206206            }
    207             if (UPLOAD_ERR_FORM_SIZE === $files['error'][$i]) {
     207            if (UPLOAD_ERR_FORM_SIZE === $files['error'][$i]) { // Error code 2
    208208                $this->_raiseMsg(sprintf(_("The file %s failed uploading: it exceeds the maximum allowed upload file size of %s."), $file_name, $_POST['MAX_FILE_SIZE']), MSG_ERR, __FILE__, __LINE__);
    209209                $app->logMsg(sprintf('The file %s failed uploading with PHP error UPLOAD_ERR_FORM_SIZE (currently %s).', $file_name, $_POST['MAX_FILE_SIZE']), LOG_ERR, __FILE__, __LINE__);
     
    211211                continue;
    212212            }
    213             if (UPLOAD_ERR_PARTIAL === $files['error'][$i]) {
     213            if (UPLOAD_ERR_PARTIAL === $files['error'][$i]) { // Error code 3
    214214                $this->_raiseMsg(sprintf(_("The file %s failed uploading: it was only partially uploaded."), $file_name), MSG_ERR, __FILE__, __LINE__);
    215215                $app->logMsg(sprintf('The file %s failed uploading with PHP error UPLOAD_ERR_PARTIAL.', $file_name), LOG_ERR, __FILE__, __LINE__);
     
    217217                continue;
    218218            }
    219             if (UPLOAD_ERR_NO_FILE === $files['error'][$i]) {
     219            if (UPLOAD_ERR_NO_FILE === $files['error'][$i]) { // Error code 4
    220220                $this->_raiseMsg(sprintf(_("The file %s failed uploading: no file was uploaded."), $file_name), MSG_ERR, __FILE__, __LINE__);
    221221                $app->logMsg(sprintf('The file %s failed uploading with PHP error UPLOAD_ERR_NO_FILE.', $file_name), LOG_ERR, __FILE__, __LINE__);
     
    223223                continue;
    224224            }
    225             if (UPLOAD_ERR_NO_TMP_DIR === $files['error'][$i]) {
     225            if (UPLOAD_ERR_NO_TMP_DIR === $files['error'][$i]) { // Error code 6
    226226                $this->_raiseMsg(sprintf(_("The file %s failed uploading: temporary upload directory missing."), $file_name), MSG_ERR, __FILE__, __LINE__);
    227227                $app->logMsg(sprintf('The file %s failed uploading with PHP error UPLOAD_ERR_NO_TMP_DIR.', $file_name), LOG_ERR, __FILE__, __LINE__);
Note: See TracChangeset for help on using the changeset viewer.