• Hi folks!

    I’m encountering an error regarding file uploads to the media library. Files of more than 10MB run into a HTTP error after they’ve finished uploading. Now, the weirdest thing is, my client can’t upload this file of 10MB – but I can; however, if I try a slightly larger one (25MB, for example), I do get the error.

    Where can this come from ? I have set the php size directives to allow a maximum of 64MB (WordPress recognizes this value), so this shouldn’t happen, right ?

    Could it have something to do with the upload script timing out (since the error manifests differently for me and my client, on different Internet networks) ?

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter simaooliveira

    (@simaooliveira)

    Some more info – the console shows the following after upload :

    Failed to load resource: the server responded with a status of 403 (Forbidden) – for the “wp-admin/async-upload.php” file. I’ve read some articles recommending the creation of a .htaccess on wp-admin with the following code inside :

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    …but no cigar.

    Hi,

    Try to increase the PHP memory_limit to 512M also the post_max_filesize should be same as upload_max_filesize.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Http error on media upload’ is closed to new replies.