Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download Fails for Very Large Files #12

Open
bcrabtree opened this issue Aug 27, 2013 · 2 comments
Open

Download Fails for Very Large Files #12

bcrabtree opened this issue Aug 27, 2013 · 2 comments

Comments

@bcrabtree
Copy link

Hi,

I'm not 100% sure if this is a Download File issue or a PHP settings issue but when I try to download a very large file, lets say a 350mb .mov file the download fails.

Originally I was getting a PHP memory error, so I bumped up my memory limit to 512M. The PHP error is now gone, but instead an empty file downloads. Meaning, the file download initiates as usual, then the file download "completes" and the file is saved to the desktop. However the file is empty (0kb).

Everything works great for files under 100mb or so.

Any suggestions?

@bliswebagency
Copy link
Owner

Looks like the issue you're experiencing is common when you start to play
with big files using the "force_download" function (
http://durham.net.au/force-download-large-files-with-php/). Basically it
seems the server is timing out before it can offer the file in full. This
isn't surprising given the way "force_download" works.

Given the intension of the plugin, I think force_download is still the best
option for the purposes I created it for but the Protected Links add-on (
http://devot-ee.com/add-ons/protected-links) may give you other options.
It's a paid add-on, so you'd probably want to check with the developer that
they have a solution before implementing their solution.

All the best,

Sam

On 28 August 2013 04:50, Bryan notifications@github.com wrote:

Hi,

I'm not 100% sure if this is a Download File issue or a PHP settings issue
but when I try to download a very large file, lets say a 350mb .mov file
the download fails.

Originally I was getting a PHP memory error, so I bumped up my memory
limit to 512M. The PHP error is now gone, but instead an empty file
downloads. Meaning, the file download initiates as usual, then the file
download "completes" and the file is saved to the desktop. However the file
is empty (0kb).

Everything works great for files under 100mb or so.

Any suggestions?


Reply to this email directly or view it on GitHubhttps://github.com//issues/12
.

Kind regards,

Sam Lomax

*Blis Web Agency
*Web Design | E-Commerce | CMS | Apps (iPhone/iPad)

8 Montrose Ave, Norwood SA 5067
Tel. (08) 8362 5688
Web. www.blis.net.au

PLEASE NOTE: I am unavailable for meetings / appointments on Wednesdays

@bcrabtree
Copy link
Author

Hi Sam,

Thank you for the info. I'm going to look into removing the timeout limit on our server, but if that doesn't work I'll check out that protected links plugin.

Cheers!
Bryan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants