box/box-php-sdk — pull request #2 by AngeloR (2011-12-09 16:45:18+00:00)
Title: Fixed upload bugs, incorporated https://github.com/box/box-php-sdk/pull/1

When uploading a file, renaming would occasionally fail. Originally I only took into account people uploading files through $_POST, but it somewhat translated over to people trying to push files that were already on the server. There were a few edge-cases that should be fixed:

1. It will only rename a file if the file isn't already named that.

2. Occasionally a file that existed on the server would be deleted on successful upload. I've modified this so that it file is optionally deleted on successful upload at the developers discretion. There's a third argument added to the Box_Rest_Client::upload() method which is simply a boolean. If true, it deletes the file. It defaults to false.

3. Skikirkwood's pull request has been sitting there for some time. He's right this was a typo on my part in the original library which I missed. I've incorporated his upload into this pull request as well. Thanks for the heads up on this Skikirkwood! You can view his pull request here: https://github.com/box/box-php-sdk/pull/1