a-ok Posted November 27, 2019 Share Posted November 27, 2019 If I'm uploading a .mp4 (could potentially be any file) to a file upload field and the file is 3mb but on uploading the file is 600kb and then the .mp4 is glitchy/plays for only a few seconds (in the browser) is it safe to assume something wrong is set on the server? I've never had this issue before (use DigitalOcean, mainly) but I'm using LCN for a client and this issue has only just occurred since migrating from my dev to LCN. Any thoughts? Link to comment Share on other sites More sharing options...
a-ok Posted November 29, 2019 Author Share Posted November 29, 2019 I've attached some images. I'm assuming it's an LCN server issue but they've stated they don't limit/cap anything. Same file on localhost and a DigitalOcean server upload fine whereas on LCN it jumps to 600kb and effectively breaks the file. Link to comment Share on other sites More sharing options...
Vladislav Zharkov Posted 2 hours ago Share Posted 2 hours ago I know I'm bumping an ancient thread, but I just recently ran into this exact issue, and it wasn't limited to just videos, but pretty much all file types, so I thought I'd share my solution. I was building a personal portfolio for a client and their website is hosted on DreamHost. Each time I uploaded a background video (8MB MP4 file) it would hang at 100% for a while, finish the upload and then show its size reduced to 2.5MB. Weirdly enough the video did play, but only a portion of it. This issue caught me off guard because I'm also running ProcessWire on a different hosting, and I've never encountered this problem before. I skimmed through phpinfo thinking that the upload limit was set too low, but it far exceeded the file size. I decided to upload a big image file (5MB JPG) somewhere in the gallery to see if it'll work, and the same issue happened. It got cut precisely at 2.5MB, thus getting corrupted, yet still displaying. So I decided to finally contact the support. Turns out it was ModSecurity acting aggressively, throwing the "Request body no files data length is larger than the configured limit" error. Support increased the limit and the issue was gone. So yeah, if anybody else ever encounters this problem, try increasing the ModSecurity file size upload limit. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now