• I increased my php uploads via the following:

    file_uploads = On
    memory_limit = 500M
    upload_max_filesize = 500M
    post_max_size = 500M
    max_execution_time = 600

    When I go to the Media Library it says “Maximum upload file size: 500MB”

    If I look at memory usage while trying to upload, I do not reach the upper limit of my host. We’re talking 600MB RAM usage out of 2GB. CPU might go up to 5% or so.

    At first this manifested as the Big File Upload issue. So I went down that rabbit hole for a few hours. But then I decided to try and upload an MP3 that was larger than 2MB (the PHP default) and that fauled with:

    “Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.”

    I *am* able to upload small files. I tested with an audio file that was 353KB.

    Is there another config somewhere in WordPress itself I need to change to enable WordPress to handler larger uploads?

Viewing 1 replies (of 1 total)
  • Moderator Yui

    (@fierevere)

    永子

    Try asking your webhosing support.
    WordPress itself does not have any limitation (Unless its a network (multisite) installation where limit can be set per-site by super administrator)

    Possible known problems:

    A) error 413 with NGINX
    client_max_body_size must be increased to fit max upload.

    B) Apache with mod_fcgid needs
    FcgidMaxRequestLen adjusted to fit max upload.

    There can be other possible problems dependent on host software.
    Refer to webserver software error logs or ask webhost support (for shared hosting)

Viewing 1 replies (of 1 total)
  • The topic ‘Having trouble uploading large files’ is closed to new replies.