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

No usable error message on file upload error due php max file size reached

    XMLWordPrintable

Details

    Description

      problem

      Uploading a file in InstantTranslate bigger as post_max_size or upload_max_filesize does not print a error message usable for the user nor a usable error message in system log, just:

      ERROR in core: E9999 - Path cannot be empty

      #0 /var/www/translate5/application/modules/editor/Plugins/InstantTranslate/Filetranslationhelper.php(461): file_get_contents() #1 /var/www/translate5/application/modules/editor/Plugins/InstantTranslate/Filetranslationhelper.php(223): editor_Plugins_InstantTranslate_Filetranslationhelper->translate5Request() #2 /var/www/translate5/application/modules/editor/Plugins/InstantTranslate/Filetranslationhelper.php(131): editor_Plugins_InstantTranslate_Filetranslationhelper->prepareTaskImport()

      solution

      This must be changed, so that the error message for the user and for admins are useful, still the error may be different: for the end user: File to big, for the admin, file is bigger as X config.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: