Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Conversation

@jnwarp
Copy link
Contributor

@jnwarp jnwarp commented Jan 29, 2018

When downloading an attachment, the byte length of the file is appended, see issue #617.

When downloading an attachment, the byte length of the file is appended, see issue facebookarchive#617.
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@gsingh93 gsingh93 merged commit eb06ec4 into facebookarchive:master Feb 28, 2018
@gsingh93
Copy link
Contributor

Thanks! What's actually happening here is that readfile is writing to the output buffer directly and the return value is the number of bytes read, which is being stored into $data. $data then gets sent down in the base class (DataController). While readfile is the more efficient way to do things, I think file_get_contents is cleaner in this case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants