Jump to content

Linebreak in get-file.php


Celeborn

Recommended Posts

Hello,

When a customer buys, and then downloads the product from my website the files are no longer working.

On investigation, I've found out this is because the get-file.php script is adding a line of whitespace to the original document therefore breaking it. See attached image.

The line break on Line 1 should not be there (file should start with 'PK') and this error does not exist in the downloads folder which leads me to believe that get-file.php is adding this whitespace.

Any suggestions on how to fix this would be welcome!

28562_XZaPLinOuCZ9zhN6zUSJ_t

Link to comment
Share on other sites

How can I determine if its the server or not? If I type in the exact hash file name to the downloads folder, the file downloads just fine and has not been changed (no line break). I also setup a standalone readfile(); example and that worked fine also.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...