Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-1034

uploading file bigger as post_max_size or upload_max_filesize gives no error message, just a empty window

    XMLWordPrintable

Details

    • High
    • If uploading a file bigger as post_max_size or upload_max_filesize gives an error message is given now.

    Description

      problem

      uploading file bigger as post_max_size or upload_max_filesize gives no error message, just a empty window.
      The POST content exceeds is just a warning, but later on this gives an exception in UploadProcessor.

      result to the user

      The task add window remains as a empty window. The user has no clue why the upload was not successful.

      solution

      The exception must be caught and a error message must be produced for the frontend.

      trace

      [23-Oct-2017 08:48:58 Europe/Berlin] PHP Warning: POST Content-Length of 13512753 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
      [23-Oct-2017 08:49:59 Europe/Vienna] ZfExtended_Log on xxx.translate5.net:
      Exception: exception 'Zend_File_Transfer_Exception' with message 'The file transfer adapter can not find "importUpload"' in C:\WAMP\mittagqi_meta\other\Zend-1.12-11\Zend\File\Transfer\Adapter\Abstract.php:1504
      Stack trace:
      #0 C:\WAMP\mittagqi_meta\other\Zend-1.12-11\Zend\File\Transfer\Adapter\Abstract.php(976): Zend_File_Transfer_Adapter_Abstract->_getFiles('importUpload')
      #1 C:\WAMP\htdocs\application\modules\editor\Models\Import\UploadProcessor.php(78): Zend_File_Transfer_Adapter_Abstract->getFileInfo('importUpload')
      #2 C:\WAMP\htdocs\application\modules\editor\Controllers\TaskController.php(706): editor_Models_Import_UploadProcessor->initAndValidate()
      #3 C:\WAMP\htdocs\library\ZfExtended\Controllers\AAARestController.php(279): editor_TaskController->additionalValidations()
      #4 C:\WAMP\htdocs\application\modules\editor\Controllers\TaskController.php(304): ZfExtended_RestController->validate()
      #5 C:\WAMP\mittagqi_meta\other\Zend-1.12-11\Zend\Controller\Action.php(516): editor_TaskController->postAction()
      #6 C:\WAMP\htdocs\library\ZfExtended\Controllers\AAARestController.php(247): Zend_Controller_Action->dispatch('postAction')
      #7 C:\WAMP\mittagqi_meta\other\Zend-1.12-11\Zend\Controller\Dispatcher\Standard.php(308): ZfExtended_RestController->dispatch('postAction')
      #8 C:\WAMP\mittagqi_meta\other\Zend-1.12-11\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(REST_Controller_Request_Http), Object(Zend_Controller_Response_Http))
      #9 C:\WAMP\mittagqi_meta\other\Zend-1.12-11\Zend\Application\Bootstrap\Bootstrap.php(105): Zend_Controller_Front->dispatch()
      #10 C:\WAMP\mittagqi_meta\other\Zend-1.12-11\Zend\Application.php(382): Zend_Application_Bootstrap_Bootstrap->run()
      #11 C:\WAMP\htdocs\library\ZfExtended\BaseIndex.php(167): Zend_Application->run()
      #12 C:\WAMP\htdocs\public\index.php(36): ZfExtended_BaseIndex->startApplication()
      #13

      {main}

      Attachments

        Activity

          People

            tlauria Thomas Lauria
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: