increase or disable chunk uploading?

antoniofalconx11426

New Member
YetiShare User
Reservo User
Apr 18, 2012
60
0
0
My overall upload speed is reduced because my upload quickly hits 100MB the upload pauses/hangs for a little big and then starts the next 100MB and then again pauses/hangs.

can i increase or disable the upload method?
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
You can increase the size of chunking if your webserver/php supports larger files. Have a look at the top of:

Code:
\themes\flow\templates\partial\_uploader.inc.php
This value is the max chunk size permitted:

Code:
define('CHUNKED_UPLOAD_SIZE', 100000000); // 100MB
 

antoniofalconx11426

New Member
YetiShare User
Reservo User
Apr 18, 2012
60
0
0
what other tweaks are needed to my php.ini? I change the CHUNKED_UPLOAD_SIZE and i get errors.

I've changed the upload and post size in my php.ini to 2G but still get errors.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
None from what I'm aware of. That constant controls the chunk size (unless your PHP settings are lower).

You can test by viewing the network traffic via FireBug while uploading.
 

antoniofalconx11426

New Member
YetiShare User
Reservo User
Apr 18, 2012
60
0
0
tried firebug and got this:
NetworkError: 413 Request Entity Too Large - https://www.MYSITE.com/core/page/ajax/file_upload_handler.ajax.php?r=www.MYSITE.com&p=https&csaKey1=20b03fccade0ff564f2cb40774c2751fc85bd3024a7d03c7250db8ceefdadec7&csaKey2=9219011d9a6d97b37cc13de898ce588d1a8fca1564d3d71a71200799a0d2f1a4"

this is after setting upload max in the php to 2G, post max 2G, memory limit to -1. and i increased the chunk site to 120M. needless to say i did restart my nginx and php5-fpm
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Did you see the following page, assuming you're on Nginx:

http://stackoverflow.com/questions/18121227/how-to-avoid-request-entity-too-large-413-error
 

antoniofalconx11426

New Member
YetiShare User
Reservo User
Apr 18, 2012
60
0
0
I dont know what else to do. I looked into that and put 2G in http, server and location blocks and still get a 413 error

what could i be missing?
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Some thoughts...

Did you do it on all servers? Inc file servers? The same with the php.ini changes. Restarting php-fpm & nginx after each.

Ensure you've tried all these which are relevant:

https://support.mfscripts.com/public/kb_view/36/

What is the exact value you've set for CHUNKED_UPLOAD_SIZE? Does it work if you set lower? (I assume yes, but just checking nothing else is going on)
 

antoniofalconx11426

New Member
YetiShare User
Reservo User
Apr 18, 2012
60
0
0
my setup only has 1 server.

i didn't consider cloudflare could be an issue. forgot i was even using it i pay so little attention to it.

i'll remove it and i'll report back.
 

antoniofalconx11426

New Member
YetiShare User
Reservo User
Apr 18, 2012
60
0
0
damn it, it was cloudflare. things are working fine now. Oddly enough my site seems much quicker and snappier for some reason.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Thanks for reporting back, it'll save someone else the hassle in future. Have you left CloudFlare disabled? Or just reduced the chunking size back down?
 

antoniofalconx11426

New Member
YetiShare User
Reservo User
Apr 18, 2012
60
0
0
I left cloudflare disabled and kepted the chunk size high. the average upload is much higher now. I was seeing 1.8MB up now it's hitting my max of 3.4MB.

when i reduced the chunk size after disabling cloudflare i didn't get that pause/hang but my average upload speed was still slower. I increased it to 1GB chunk and i can hit my max upload.