caffeineben Posted June 17, 2023 Share Posted June 17, 2023 I am running 3.0.210 and having issues uploading files larger than 2.6mb in the admin. Everything is working fine as long as the file is not bigger than 2.6mb. I tried uploading an 8.3mb file and a 20mb file in a file field. It shows the right file size beside the file name when you start uploading. The progress bar rolls through to 100%. Then when it his 100% the file size goes to 2MB. If I then look at the file size using FTP - the file is 2.6mb. I tried creating a new field and get the same result. I tried uploading the same files (I have tried a couple files and behavior is the same) and it works fine on another site on the same server, exact same files. Does anyone have an ideas what could be happening? Strange behavior and I can't figure it out. Wondering if I need to reinstall Processwire or upgrade it the latest release? I appreciate any help! Link to comment Share on other sites More sharing options...
caffeineben Posted June 17, 2023 Author Share Posted June 17, 2023 The above images show (1) what it looks like when finished uploading, (2) what it looks like when uploading, and (3) the actual file with size on my computer. Link to comment Share on other sites More sharing options...
netcarver Posted June 17, 2023 Share Posted June 17, 2023 Some things to check first: 1. Check the value of the upload_max_filesize directive in your PHP configuration file (php.ini). If the value is set to 2.6MB or lower, it could be limiting the upload size. Increase the value to allow larger file uploads. After making changes to `php.ini`, restart your web server for the changes to take effect. 2. Check the post_max_size directive, it determines the maximum amount of data that can be sent in a POST request. If the uploaded file exceeds this limit, it can result in incomplete uploads or truncation. Make sure this is set to a size greater than the maximum file size you want to allow. After that, if it still doesn't work, you could try looking at the web server configuration. In Apache, you may need to adjust the `LimitRequestBody` directive in your server configuration to allow larger file uploads. 2 Link to comment Share on other sites More sharing options...
AswinC Posted June 17, 2023 Share Posted June 17, 2023 check with a normal php file and a simple form, if you still have it or not. think about excluding your php file from .htaccess, otherwise it's still processwire you access. so to check if it's the hosting or pw: How to Upload a File in PHP (With Easy Examples) (filestack.com) Link to comment Share on other sites More sharing options...
caffeineben Posted June 18, 2023 Author Share Posted June 18, 2023 Thanks netcarver. Checked all 3 potential fixes and none of them are causing the issue. It's so strange to me because I have other Processwire installations on the same server and they all work! Link to comment Share on other sites More sharing options...
netcarver Posted June 18, 2023 Share Posted June 18, 2023 Ok, are you running mod_security on the server? Link to comment Share on other sites More sharing options...
Leonardo Posted June 19, 2023 Share Posted June 19, 2023 Does anyone know how to correct the error of the images that do not load in a slider? When uploading them, they remain loaded and it is not possible to complete the process. I appreciate your help. 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