ottogal Posted April 18, 2016 Share Posted April 18, 2016 Hi all, I encounter a strange issue. I have a field of type File with just mp4 as allowed file extension.A page is using a template that has this field added.Editing this page, I start the upload of a local mp4 file (around 90 MB of size) to said field. The progress bar is proceding until 100%, but then the download hangs; the wheel symbol doesn't stop rotating.What might cause this behaviour?(PW 3.0.15) Link to comment Share on other sites More sharing options...
LostKobrakai Posted April 18, 2016 Share Posted April 18, 2016 I'd take a look at these php.ini values: post_max_size=20M upload_max_filesize=20M Link to comment Share on other sites More sharing options...
ottogal Posted April 19, 2016 Author Share Posted April 19, 2016 As far as I see I don't have access to the php.ini file (hoster is all-inkl.com). Can I change these values via .htaccess? Link to comment Share on other sites More sharing options...
LostKobrakai Posted April 19, 2016 Share Posted April 19, 2016 Try it like this, but instead of blindly changing them please take a look first at the phpinfo() and see if this might really be the cause of the issue. php_value upload_max_filesize 40M php_value post_max_size 42M Link to comment Share on other sites More sharing options...
ottogal Posted April 19, 2016 Author Share Posted April 19, 2016 PHP Version is 5.3.28-nmm5upload_max_filesize is 200M (both values)post_max_size is 200M (both values) So this should not cause the problem... Link to comment Share on other sites More sharing options...
cstevensjr Posted April 19, 2016 Share Posted April 19, 2016 I believe the post_max_size has to be bigger than the upload_max_size Link to comment Share on other sites More sharing options...
ottogal Posted April 21, 2016 Author Share Posted April 21, 2016 I also tried upload_max_filesize 200M and post_max_size 300M , to no avail (neither via .htaccess nor via config.php). It seems that the file size is not the culprit - it doesn't work even for very small files. In /wire/config.php I found the Bad file extensions for uploads, but mp4 was not amongst them. Then I saw the section $config->fileContentTypes = array( '?' => '+application/octet-stream', 'pdf' => '+application/pdf', 'doc' => '+application/msword', 'docx' => '+application/msword', 'xls' => '+application/excel', 'xlsx' => '+application/excel', 'rtf' => '+application/rtf', 'gif' => 'image/gif', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'png' => 'image/x-png', ); and added the line 'mp4' => 'video/mp4', but without success. BTW: Uploading the mp4 files via FTP and refering them in the HTML code works without any issues. I really need help what to do... Thank you Link to comment Share on other sites More sharing options...
cstevensjr Posted April 21, 2016 Share Posted April 21, 2016 I am sorry you are having problems with this. I really don't know where the problem exists in your circumstance, however let's go over what the PHP Manual says about file uploads: The source is as follow: http://php.net/manual/en/ini.core.php#ini.file-uploads I have made screen shots of what I think are some of the important parts that need to reviewed and understood by all: Hopefully you will get a clearer understanding of what is required in the PHP configuration portion regarding file uploads. Best Regards, Charles Link to comment Share on other sites More sharing options...
cstevensjr Posted April 21, 2016 Share Posted April 21, 2016 Just to cover the ProcessWire file field settings also: If there is something else going on, you will need to be more specific (providing code) or screenshots so we may be able to help you resolve whatever is causing your problem. Best Regards, Charles Link to comment Share on other sites More sharing options...
ottogal Posted April 27, 2016 Author Share Posted April 27, 2016 Hi cstevensjr, sorry for my late reply, I was distracted by other issues... Thank you for your time to do these screenshots. My field settings are okay, and I don't believe that it's a question of file size. In the meantime I made a strange observation: I added the field (type file, allowed extension mp4) to the template of a page in the Admin branch of the tree (it's a child of Admin). And here I don't have any problem to upload just the same mp4 file I used before... Link to comment Share on other sites More sharing options...
ottogal Posted May 13, 2016 Author Share Posted May 13, 2016 Hi again, I'm competely at a loss with this problem... I increased the upload_max_filesize and post_max_size, also tried to set post_max_size to 0 Iinspired by another post, I tried this in the .htaccess : <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> All that without success. I'd highly appreciate any further hints. (Cannot give a link, though.) Link to comment Share on other sites More sharing options...
cstevensjr Posted May 13, 2016 Share Posted May 13, 2016 You may want to open a trouble ticket with your hosing provider. They may be able to provide some insight into why you are having upload issues. Please let us know what you find out from your hosting provider. Good luck. Link to comment Share on other sites More sharing options...
adrian Posted May 13, 2016 Share Posted May 13, 2016 Since you are playing around with mod_security settings, I would also try disabling it completely to see if that helps. Maybe also check to see if the server is running suhosin and disable that as well. If it works then you can work backwards to figure out what settings are needed. 2 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