Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2015-02-19 07:57:29

hursey
Member
From: Los Angeles
Registered: 2012-12-07
Posts: 113
Website

Download of large file not working....

I have a very large file that I am attaching to a CRG download page. (800MB) when I click on the download icon I get the usual animation of a download starting but the file in my download folder is Zero Bytes. When I go to the actual address of the image it will show up in the browser... but the download process is not working. (it does with other smaller files...) Thoughts?????


Sitting Pretty in Sunny L.A.

Offline

#2 2015-02-19 08:54:00

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Download of large file not working....

does the download have the exact same filename as the image in the gallery.

as always, links to galleries help


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2015-02-19 09:00:32

hursey
Member
From: Los Angeles
Registered: 2012-12-07
Posts: 113
Website

Re: Download of large file not working....

http://www.hursey.com/clients/rosatello/z_finals/

Yes and I just tested it with a 250 mb file and it worked.... switched back to the 800mb file and it does not work


Sitting Pretty in Sunny L.A.

Offline

#4 2015-02-19 09:19:12

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Download of large file not working....

Just a guess, but it sounds there is php download limit set in your php.ini file.

Might be something to ask your hosting company about.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2015-02-19 14:53:40

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Download of large file not working....

I was going to suggest what Rod said.


Matt

The Turning Gate, http://theturninggate.net

Offline

#6 2015-02-19 15:42:24

hursey
Member
From: Los Angeles
Registered: 2012-12-07
Posts: 113
Website

Re: Download of large file not working....

Turns out it was a php memory issue... No solution other than creating a custom "direct link" download page for the specific file. Since it is rare to deliver a file of this size... Not a huge issue. But good to know the exact cause nonetheless.


Sitting Pretty in Sunny L.A.

Offline

#7 2015-02-19 20:26:42

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Download of large file not working....

Looking into this, I am surprised to find that PHP's readfile function is limited by the available memory.  Is your download script part of TTG code or something you've put together?  In either case it's very likely to use readfile, and be limited by the memory limit.

There are solutions to this out there, but they involve a fair amount of code so aren't something that could readily be dropped in.
This page includes code to bypass memory limits: http://phpsnips.com/579/PHP-download-sc … -Downloads
I have not tried the code so can't vouch for its reliability.

Offline

#8 2015-02-20 02:11:05

hursey
Member
From: Los Angeles
Registered: 2012-12-07
Posts: 113
Website

Re: Download of large file not working....

I am using the default files... I did not create anything custom... was on with my hosting company tech support for literally hours and my case finally got "escalated" the tech after trying many things indicated that even after using the memory allotment in the php.ini file that because of the file size (again 800 MB) it was indeed running out of memory on the server side.


Sitting Pretty in Sunny L.A.

Offline

Board footer

Powered by FluxBB