How to enable large file upload support

Table of contents:

This is a Stub article. Help the eZ Publish community by expanding it!

About

Web applications basically must usually be configured to support large file uploads as well as web servers.

I can't begin to remember to forget the first time I configured eZ Publish v1.x and Apache 1.x to support large file uploads.

Example

Here is an example solution

Steps

It sounds like you want to optimize your web server and php configurations together to avoid this error.

  1. Evaluation: Which version of apache are you running?
    1. Apache 1.3.x
    • This sounds strikingly similar to an apache 1.3 (large file upload) configuration issue I've learned to avoid over the years. set LimitRequestBody to an int (file size in bytes) value larger than your largest file.
    • I found I often needed this apache settings change along with the php settings changes to enable large file uploads with apache 1.3
    • Based on the size of the file being uploaded. Consider raising the values of the post_max_size to a larger value than the file being uploaded, as well as the value of max_input_time and max_execution_time beyond the amount of time required to complete the upload of the file.
  2. eZ 4.x, Edit ... to enable large file support withing web application.
    1. Example missing. Must not be required (per say)
  3. PHP 5.x, Edit relevant php.ini configuration values
    1. max_execution_time = 45     ; Maximum execution time of each script, in seconds
      max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
      ;max_input_nesting_level = 64 ; Maximum input variable nesting level
      memory_limit = 258M      ; Maximum amount of memory a script may consume (128MB)
       
      ; Maximum size of POST data that PHP will accept.
      post_max_size = 201M
       
      ; Whether to allow HTTP file uploads.
      file_uploads = On
       
      ; Temporary directory for HTTP uploaded files (will use system default if not
      ; specified).
      ;upload_tmp_dir =
       
      ; Maximum allowed size for uploaded files.
      upload_max_filesize = 201M
       
  4. Clear eZ Caches and Restart Apache services

References