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

File downloads get truncated at 70mb #16

Open
djvern opened this issue Oct 4, 2011 · 2 comments
Open

File downloads get truncated at 70mb #16

djvern opened this issue Oct 4, 2011 · 2 comments

Comments

@djvern
Copy link

djvern commented Oct 4, 2011

Hi, I'm having an issue with attempting to download large files - anything over 70mb is being truncated. I'm running modx on a shared server where the PHP memory limit is 80mb - could this be an issue? I don't need the security of a hash - is there any way the plugin could return the actual path of the file, as I'm guessing this might resolve the issue?

Thanks,
Dave Vernon

@djvern
Copy link
Author

djvern commented Oct 5, 2011

In case it helps anyone else, I've managed to disable the hash myself by amending the following lines in the FileLister snippet:

line 159
$key = $fileLister->makeKey($filePath);

change to:

$key = $path.$file->getFilename();

line 174
'url' => $modx->makeUrl($modx->resource->get('id'),'',array( $navKey => $key, )),

change to:

'url' => $key,

This solves my truncated files issue at the expense of removing the hash key. There's probably more elegant solutions but this works for me!

@Finetuned
Copy link

Thanks for this, makes it easier to debug when things go wrong

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