Http error uploading mp4 file

Hello,

Using the Pro theme, I want to upload an mp4 video so I can use it for a section background. When I try to upload the mp4 file into my media library it appears to upload (I see a blue loading bar fill up a new tile), but then it fails and I get a message saying there was an HTTP error. The media page says maximum file upload is 32MB, my mp4 is only 12.5MB.

If there is no clear answer to this issue, as I have seen another unresolved thread on this issue, is there a website that I can upload mp4 files to get a mp4-url that I can use?

Any advice/ help you could provide would be greatly appreciated! Thanks!

Hi Doug,

Thanks for reaching out.

This might be some security configuration which is blocking to upload files with specific extensions.

You can overcome this by using the small piece of code, expecting will not conflicting with any existing code.
You just copy and paste this code to wp-config.php file.

define('ALLOW_UNFILTERED_UPLOADS', true);

Please note that the code provided serve only as a guide to help you get started custom coding on your own if there’s no option offered in our theme or the products we bundle. We do not provide support for custom codes that means we can’t fix it in case it conflicts with something in your site nor will we enhance it.

Hope it helps.

Thanks so much for responding so quickly! I’ll definitely give this a shot. Where in my wp-config.php should I paste this line? I’ll be sure to make a copy of the original just in case the change doesn’t work.

Hi Doug,

You can add the above line of code in the wp-config.php file just above the following statement.

/* That's all, stop editing! Happy publishing. */

Here is some helpful link.

Thank you.

Pasting this code did not work. I still get an HTTP error when I upload the mp4. Any other suggestions or work arounds?

Hi Doug,

Thanks for reaching out.

Kindly provide us access to your site so that we can able check your issue.
Please create a secure note with the following info:

– Link to your site
– WordPress Admin username / password
-FTP Access

To know how to create a secure note, please check this out: https://theme.co/docs/getting-support

Thank you.

Sent secure note

Hi Doug,

We have tried to upload a sample mp4 file after checking that the code is already added to wp-config.php.
And file has been uploaded successfully at your Media Library.

If you still find the same issue, please provide us a screenshot marking the issue into it.
It will help us to understand what exact issue you are having.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.