box/box-php-sdk — Issue #4: cannot upload file
Author: ashleywillis
Created: 2012-02-24 21:25:43+00:00
State: open

i am able to authenticate and create arbitrary directories (having modified upload.php to use the given folder_name), but when trying to upload a file i get the following error:

Warning: rename(/tmp/phpcoK89I,notices-php) [function.rename]: Permission denied in /home/ashley/public_html/box-php-sdk/lib/Box_Rest_Client.php on line 401

Fatal error: Uncaught exception 'Box_Rest_Client_Exception' with message 'Uploaded file could not be renamed.' in /home/ashley/public_html/box-php-sdk/lib/Box_Rest_Client.php:402 Stack trace: #0 /home/ashley/public_html/box-php-sdk/upload.php(29): Box_Rest_Client->upload(Object(Box_Client_File)) #1 {main} thrown in /home/ashley/public_html/box-php-sdk/lib/Box_Rest_Client.php on line 402

also, example.php mentions there are two ways to upload a file, but i only see the bounce method, not the direct method.

i'm running this from my local apache server: https://192.168.1.2/~ashley/box-php-sdk/upload.php