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.
You are not logged in.
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
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
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
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
I was going to suggest what Rod said.
Offline
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
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
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