JoshoB Posted January 26, 2018 Share Posted January 26, 2018 So I've been working on a website where large files don't get uploaded via the Ajax drag-and-drop thing. These are files in excess of 100 MB. I've tried uploading a file of 160 MB and one of 250 MB and neither of them work. The progress bar gets to 100% and then nothing happens. I let it stay there for a few minutes, but it never gets resolved. Large files just don't get uploaded to the server for some reason. I've also tried the trick where initHTML5 is replaced by InitOldSchool in the javascript file for the uploader (i.e. InputfieldFile.js in wire/modules), but still no dice. These are the settings on the server/PHP.ini: extension=apc.so session.save_path = "/tmp" upload_max_filesize = 1024M post_max_size = 1024M max_execution_time = 36000 max_input_time = 36000 memory_limit = 2048M always_populate_raw_post_data = -1 date.timezone = "Europe/Amsterdam" mail.add_x_header = On enable_dl = Off disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open And .htaccess: php_value upload_max_filesize 1024M php_value post_max_size 1024M php_value memory_limit 1024M php_value max_execution_time 36000 php_value max_input_time 36000 And also this in .htaccess: <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> I don't see what the problem could be. But perhaps I've been looking at this for so long I just don't see the answer. If anyone around here can help, that would be grand! Thanks. Link to comment Share on other sites More sharing options...
JoshoB Posted January 26, 2018 Author Share Posted January 26, 2018 Debugger in Firefox gives this error when it hits 100%. Link to comment Share on other sites More sharing options...
adrian Posted January 26, 2018 Share Posted January 26, 2018 12 minutes ago, JoshoB said: Debugger in Firefox gives this error when it hits 100%. You need to take a look at the Network panel and view the reponse for the ajax upload script - it looks like a PHP error that is causing that unexpected character - probablt something about memory. Link to comment Share on other sites More sharing options...
bernhard Posted January 26, 2018 Share Posted January 26, 2018 and finally this one: As you can see I was not able to fix this... Maybe you find some helpful informations in those posts though. 1 Link to comment Share on other sites More sharing options...
JoshoB Posted January 27, 2018 Author Share Posted January 27, 2018 17 hours ago, adrian said: You need to take a look at the Network panel and view the reponse for the ajax upload script - it looks like a PHP error that is causing that unexpected character - probablt something about memory. Thanks, but it doesn't give an error in the Network panel at all. Link to comment Share on other sites More sharing options...
JoshoB Posted January 27, 2018 Author Share Posted January 27, 2018 16 hours ago, bernhard said: As you can see I was not able to fix this... Maybe you find some helpful informations in those posts though. Yeah, I haven't had any luck with any of those solutions either. Thanks anyway! I'm almost 100% sure it must be some server error, but I'll be damned if I know what? Link to comment Share on other sites More sharing options...
adrian Posted January 27, 2018 Share Posted January 27, 2018 2 hours ago, JoshoB said: Thanks, but it doesn't give an error in the Network panel at all. See if this helps: https://processwire.com/talk/topic/17089-images-disapear-after-uploading-and-saving/?do=findComment&comment=150139 1 Link to comment Share on other sites More sharing options...
JoshoB Posted February 11, 2018 Author Share Posted February 11, 2018 Thanks everyone; I managed to solve it in the end. It was a stray line of PHP code where I redefined a variable that overrode my PHP.ini settings. A silly mistake, but one that proved to be very hard to track down. Link to comment Share on other sites More sharing options...
adrian Posted February 11, 2018 Share Posted February 11, 2018 6 minutes ago, JoshoB said: Thanks everyone; I managed to solve it in the end. It was a stray line of PHP code where I redefined a variable that overrode my PHP.ini settings. A silly mistake, but one that proved to be very hard to track down. Tracy can really help with reporting of image upload errors - usually you'll get warnings/notices in the the errors panel, or you'll get Tracy's "Buescreen" for fatal errors. 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