ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problems uploading Large Files when Logged in to EE - Experimenting with Simple S3 Uploader & Channel Fields - EE seems to be dropping/interupting the

June 06, 2013 5:56am

Subscribe [2]
  • #1 / Jun 06, 2013 5:56am

    Kubik101

    155 posts

    EE 2.5.5
    Windows IIS
    PHP 5.3.21

    /////////////

    I am working on an upload area where members can upload large files via a safe cracker stand alone form on the front end.

    I have been experimenting with Simple S3 Uploader, Channel Files and the some raw S3 File Upload source code seen here: http://undesigned.org.za/2007/10/22/amazon-s3-php-class

    I have bumped up the following PHP Settings:
    upload_max_filesize = 1500M
    max_input_time = 7200
    memory_limit = 128M
    max_execution_time = 7200
    post_max_size = 1800M
    session.gc_maxlifetime = 7200

    And I have also added the following config settings to the expression engine’s config file:
    $config[‘cp_session_ttl’] = 7200;
    $config[‘user_session_ttl’] = 7200;

    /////////////

    Problems I have found to date (also replicated on a co-workers machine, different premises and internet connection)

    When logged in to EE and trying to upload a 30MB file via a Simple S3 Uploader on a safe cracker form I get this error after a few minutes: Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.

    I also tried a 30MB file using a Channel Files Field on Safecracker and it stopped at 10MB sometimes 13MB depending on connection speed, which equated to about 2 minutes.

    Channel Fields also stops around the same mark when uploading in a new entry in the CP too.

    /////////////

    As far as I can tell it is not the server because both myself and a co-worker have successfully uploaded 700MB files a number of times via the raw S3 upload code: http://undesigned.org.za/2007/10/22/amazon-s3-php-class

    /////////////

    I am so close but I think EE is dropping the session out or stopping the script or interrupting the connection some how.

    Can anyone help?

  • #2 / Jun 06, 2013 2:34pm

    Manuel Payano

    144 posts

    Hi,

    IIS and Apache also have their own connection timeout settings.

    Have you tried increasing those?
    IIS: http://stackoverflow.com/questions/6922571/what-is-the-difference-between-web-config-timeout-and-iis-timeout

    Note: You said the connection dropped around 2mins. That is the default timeout in IIS.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases