Jump to content

Large files get to 100% and then hang when uploading


JoshoB
 Share

Recommended Posts

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

12 minutes ago, JoshoB said:

Debugger in Firefox gives this error when it hits 100%.

error.png

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

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

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

  • 3 weeks later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...